equal
deleted
inserted
replaced
61 natural_t mem_total = mem_used + mem_free; |
61 natural_t mem_total = mem_used + mem_free; |
62 DLog(@"used: %u free: %u total: %u", mem_used, mem_free, mem_total); |
62 DLog(@"used: %u free: %u total: %u", mem_used, mem_free, mem_total); |
63 #endif |
63 #endif |
64 } |
64 } |
65 |
65 |
66 BOOL inline isApplePhone () { |
|
67 return (IS_IPAD() == NO); |
|
68 } |
|
69 |
|
70 NSString *getModelType () { |
66 NSString *getModelType () { |
71 size_t size; |
67 size_t size; |
72 // set 'oldp' parameter to NULL to get the size of the data returned so we can allocate appropriate amount of space |
68 // set 'oldp' parameter to NULL to get the size of the data returned so we can allocate appropriate amount of space |
73 sysctlbyname("hw.machine", NULL, &size, NULL, 0); |
69 sysctlbyname("hw.machine", NULL, &size, NULL, 0); |
74 char *name = (char *)malloc(sizeof(char) * size); |
70 char *name = (char *)malloc(sizeof(char) * size); |