git.ithinksw.org
/
ITFoundation.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Finished the server sockets, almost. Not touched clients yet. Cleanups for other...
[ITFoundation.git]
/
ITVirtualMemoryInfo.m
diff --git
a/ITVirtualMemoryInfo.m
b/ITVirtualMemoryInfo.m
index
a5d696d
..
3c6a96a
100755
(executable)
--- a/
ITVirtualMemoryInfo.m
+++ b/
ITVirtualMemoryInfo.m
@@
-1,4
+1,5
@@
#import "ITVirtualMemoryInfo.h"
#import "ITVirtualMemoryInfo.h"
+#import <unistd.h>
@interface ITVirtualMemoryInfo (Private)
- (BOOL)refreshStats:(struct vm_statistics *)myStat;
@interface ITVirtualMemoryInfo (Private)
- (BOOL)refreshStats:(struct vm_statistics *)myStat;
@@
-18,14
+19,7
@@
- (int)pageSize
{
- (int)pageSize
{
- int pageSize = 0;
-
- if ( host_page_size(mach_host_self(), &pageSize) != KERN_SUCCESS ) {
- NSLog(@"Failed to get page size, defaulting to 4096/4k");
- pageSize = DEFAULT_PAGE_SIZE;
- }
-
- return pageSize;
+ return getpagesize();
}
- (int)freePages
}
- (int)freePages