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

Comparing projects/cms/source/ihost/libstatgrab/memory_stats.c (file contents):
Revision 1.3 by tdb, Thu May 16 15:25:45 2002 UTC vs.
Revision 1.4 by pajs, Thu May 16 17:02:43 2002 UTC

# Line 95 | Line 95 | char *get_memory_stats(){
95                  errf("Failed to get free memory (%m)");
96                  return NULL;
97          }
98 +        if((kstat_close(kc)) != 0){
99 +                errf("Failed to close kstat control structure (%m)");
100 +                return NULL;
101 +        }      
102          total=((totalmem*pagesize)/1024)/1024;
103          free=(((kn->value.ul)*pagesize)/1024)/1024;
104          used=total-free;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines