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

Comparing projects/libstatgrab/src/libstatgrab/cpu_stats.c (file contents):
Revision 1.10 by tdb, Sun Aug 24 20:24:09 2003 UTC vs.
Revision 1.11 by ats, Sat Oct 18 22:15:35 2003 UTC

# Line 105 | Line 105 | cpu_states_t *get_cpu_totals(){
105          cpu_now.total=cpu_now.user+cpu_now.nice+cpu_now.kernel+cpu_now.idle;
106   #endif
107   #ifdef FREEBSD
108 <        if (sysctlbyname("kern.cp_time", NULL, &size, NULL, NULL) < 0){
109 <                return NULL;
110 <        }
111 <        if (sysctlbyname("kern.cp_time", &cp_time, &size, NULL, NULL) < 0){
108 >        if (sysctlbyname("kern.cp_time", &cp_time, &size, NULL, 0) < 0){
109                  return NULL;
110          }
111  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines