equal
deleted
inserted
replaced
152 natural_t mem_used = (vm_stat.active_count + vm_stat.inactive_count + vm_stat.wire_count) * pagesize; |
152 natural_t mem_used = (vm_stat.active_count + vm_stat.inactive_count + vm_stat.wire_count) * pagesize; |
153 natural_t mem_free = vm_stat.free_count * pagesize; |
153 natural_t mem_free = vm_stat.free_count * pagesize; |
154 natural_t mem_total = mem_used + mem_free; |
154 natural_t mem_total = mem_used + mem_free; |
155 DLog(@"used: %u free: %u total: %u", mem_used, mem_free, mem_total); |
155 DLog(@"used: %u free: %u total: %u", mem_used, mem_free, mem_total); |
156 } |
156 } |
|
157 |
|
158 BOOL isPhone() { |
|
159 return (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone); |
|
160 } |