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.25 by tdb, Tue Apr 6 14:52:58 2004 UTC vs.
Revision 1.26 by tdb, Wed Apr 7 14:53:40 2004 UTC

# Line 96 | Line 96 | sg_mem_stats *sg_get_mem_stats(){
96          if((kn=kstat_data_lookup(ksp, "freemem")) == NULL){
97                  return NULL;
98          }
99 <        kstat_close(kc);
99 >        kstat_close(kc);
100  
101          mem_stat.total = (long long)totalmem * (long long)pagesize;
102          mem_stat.free = ((long long)kn->value.ul) * (long long)pagesize;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines