# | 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); |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |