-- (BOOL)refreshStats:(struct vm_statistics *)myStat
-{
- bzero(myStat,sizeof(myStat));
- mach_port_t myHost = mach_host_self();
- int count = HOST_VM_INFO_COUNT;
- NSLog(@"%i",count);
- int returned = host_statistics(myHost, HOST_VM_INFO, myStat, &count);
- if ( returned != KERN_SUCCESS ) {
- NSLog(@"Failed to get Statistics in -refreshStats method of ITVirtualMemoryInfo");
- NSLog(@"%s",strerror(returned));
- return NO;
- } else {
- return YES;
- }
+- (BOOL)refreshStats:(struct vm_statistics *)myStat {
+ bzero(myStat,sizeof(myStat));
+ mach_port_t myHost = mach_host_self();
+ int count = HOST_VM_INFO_COUNT;
+ ITDebugLog(@"%i",count);
+ int returned = host_statistics(myHost, HOST_VM_INFO, myStat, &count);
+ if ( returned != KERN_SUCCESS ) {
+ ITDebugLog(@"Failed to get Statistics in -refreshStats method of ITVirtualMemoryInfo");
+ ITDebugLog(@"%s",strerror(returned));
+ return NO;
+ } else {
+ return YES;
+ }