ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/libstatgrab/src/libstatgrab/memory_stats.c
(Generate patch)

Comparing projects/libstatgrab/src/libstatgrab/memory_stats.c (file contents):
Revision 1.28 by ats, Sun Jul 18 21:30:11 2004 UTC vs.
Revision 1.29 by ats, Sun Jul 18 21:31:32 2004 UTC

# 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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines