# | Line 171 | Line 171 | sg_mem_stats *sg_get_mem_stats(){ | |
---|---|---|
171 | * After that I then need to multiple the anything that used vm.stats to | |
172 | * get the system statistics by pagesize | |
173 | */ | |
174 | < | /* FIXME getpagesize() cannot actually fail */ |
175 | < | if ((pagesize=getpagesize()) == -1){ |
176 | < | sg_set_error(SG_ERROR_GETPAGESIZE, "NULL"); |
177 | < | return NULL; |
178 | < | } |
179 | < | |
174 | > | pagesize = getpagesize(); |
175 | mem_stat.cache=cache_count*pagesize; | |
176 | ||
177 | /* Of couse nothing is ever that simple :) And I have inactive pages to |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |