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.33 by tdb, Sun Oct 29 23:01:16 2006 UTC vs.
Revision 1.34 by tdb, Mon Oct 30 08:20:05 2006 UTC

# Line 258 | Line 258 | sg_mem_stats *sg_get_mem_stats(){
258          mib[0] = CTL_VM;
259          mib[1] = VM_METER;
260          size = sizeof(vmtotal);
261 <        if (sysctl(mib, 2, &vmtotal, &size, NUSG_ERROR_SYSCTL, 0) < 0) {
261 >        if (sysctl(mib, 2, &vmtotal, &size, NULL, 0) < 0) {
262                  sg_set_error_with_errno(SG_ERROR_SYSCTL,
263                                          "CTL_VM.VM_METER");
264                  return NULL;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines