Return to iostat.c CVS log | Up to [local] / src / usr.bin / systat |
version 1.30, 2008/06/12 22:26:01 | version 1.31, 2008/06/13 08:18:47 | ||
---|---|---|---|
|
|
||
int n, count = 0; | int n, count = 0; | ||
int i, curr; | int i, curr; | ||
etime = naptime; | |||
etime = 0.0; | |||
for (i = 0; i < CPUSTATES; i++) | |||
etime += cur.cp_time[i]; | |||
if (etime == 0.0) | |||
etime = 1.0; | |||
etime /= (float) hz; | |||
/* XXX engine internals: save and restore curr_line for bcache */ | /* XXX engine internals: save and restore curr_line for bcache */ | ||
curr = curr_line; | curr = curr_line; |