=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/systat/iostat.c,v retrieving revision 1.30 retrieving revision 1.31 diff -c -r1.30 -r1.31 *** src/usr.bin/systat/iostat.c 2008/06/12 22:26:01 1.30 --- src/usr.bin/systat/iostat.c 2008/06/13 08:18:47 1.31 *************** *** 1,4 **** ! /* $OpenBSD: iostat.c,v 1.30 2008/06/12 22:26:01 canacar Exp $ */ /* $NetBSD: iostat.c,v 1.5 1996/05/10 23:16:35 thorpej Exp $ */ /* --- 1,4 ---- ! /* $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,157 **** 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; ! /* XXX engine internals: save and restore curr_line for bcache */ curr = curr_line; --- 142,148 ---- int n, count = 0; int i, curr; ! etime = naptime; /* XXX engine internals: save and restore curr_line for bcache */ curr = curr_line;