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.1 by pajs, Tue Feb 18 19:28:30 2003 UTC vs.
Revision 1.2 by pajs, Tue Feb 18 23:23:36 2003 UTC

# Line 42 | Line 42
42   static cpu_states_t cpu_now;
43   static int cpu_now_uninit=1;
44  
45
45   cpu_states_t *get_cpu_totals(){
46  
47   #ifdef SOLARIS
# Line 77 | Line 76 | cpu_states_t *get_cpu_totals(){
76          cpu_now.total=cpu_now.user+cpu_now.iowait+cpu_now.kernel+cpu_now.idle+cpu_now.swap;
77          cpu_now_uninit=0;
78  
79 <        if((kstat_close(kc)) != 0){
81 <                return NULL;
82 <        }
83 <
79 >        kstat_close(kc);
80   #endif
81  
82          cpu_now.systime=time(NULL);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines