=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/systat/iostat.c,v retrieving revision 1.23 retrieving revision 1.24 diff -c -r1.23 -r1.24 *** src/usr.bin/systat/iostat.c 2004/02/15 22:56:12 1.23 --- src/usr.bin/systat/iostat.c 2006/03/31 04:10:59 1.24 *************** *** 1,4 **** ! /* $OpenBSD: iostat.c,v 1.23 2004/02/15 22:56:12 tedu Exp $ */ /* $NetBSD: iostat.c,v 1.5 1996/05/10 23:16:35 thorpej Exp $ */ /* --- 1,4 ---- ! /* $OpenBSD: iostat.c,v 1.24 2006/03/31 04:10:59 deraadt Exp $ */ /* $NetBSD: iostat.c,v 1.5 1996/05/10 23:16:35 thorpej Exp $ */ /* *************** *** 34,40 **** #if 0 static char sccsid[] = "@(#)iostat.c 8.1 (Berkeley) 6/6/93"; #endif ! static char rcsid[] = "$OpenBSD: iostat.c,v 1.23 2004/02/15 22:56:12 tedu Exp $"; #endif /* not lint */ #include --- 34,40 ---- #if 0 static char sccsid[] = "@(#)iostat.c 8.1 (Berkeley) 6/6/93"; #endif ! static char rcsid[] = "$OpenBSD: iostat.c,v 1.24 2006/03/31 04:10:59 deraadt Exp $"; #endif /* not lint */ #include *************** *** 308,323 **** stat1(int row, int o) { int i; ! double time; ! time = 0; for (i = 0; i < CPUSTATES; i++) ! time += cur.cp_time[i]; ! if (time == 0.0) ! time = 1.0; wmove(wnd, row, INSET); #define CPUSCALE 0.5 ! histogram(100.0 * cur.cp_time[o] / time, 50, CPUSCALE); } static void --- 308,323 ---- stat1(int row, int o) { int i; ! double tim; ! tim = 0; for (i = 0; i < CPUSTATES; i++) ! tim += cur.cp_time[i]; ! if (tim == 0.0) ! tim = 1.0; wmove(wnd, row, INSET); #define CPUSCALE 0.5 ! histogram(100.0 * cur.cp_time[o] / tim, 50, CPUSCALE); } static void