diff options
Diffstat (limited to 'usr.bin/systat')
-rw-r--r-- | usr.bin/systat/iostat.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/usr.bin/systat/iostat.c b/usr.bin/systat/iostat.c index da2b7b1f973..d9b24498cfe 100644 --- a/usr.bin/systat/iostat.c +++ b/usr.bin/systat/iostat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: iostat.c,v 1.30 2008/06/12 22:26:01 canacar Exp $ */ +/* $OpenBSD: iostat.c,v 1.31 2008/06/13 08:18:47 canacar Exp $ */ /* $NetBSD: iostat.c,v 1.5 1996/05/10 23:16:35 thorpej Exp $ */ /* @@ -142,16 +142,7 @@ print_io(void) int n, count = 0; int i, curr; - - etime = 0.0; - for (i = 0; i < CPUSTATES; i++) - etime += cur.cp_time[i]; - - if (etime == 0.0) - etime = 1.0; - - etime /= (float) hz; - + etime = naptime; /* XXX engine internals: save and restore curr_line for bcache */ curr = curr_line; |