=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/systat/iostat.c,v retrieving revision 1.49 retrieving revision 1.50 diff -u -r1.49 -r1.50 --- src/usr.bin/systat/iostat.c 2019/06/28 13:35:04 1.49 +++ src/usr.bin/systat/iostat.c 2021/08/14 14:22:26 1.50 @@ -1,4 +1,4 @@ -/* $OpenBSD: iostat.c,v 1.49 2019/06/28 13:35:04 deraadt Exp $ */ +/* $OpenBSD: iostat.c,v 1.50 2021/08/14 14:22:26 millert Exp $ */ /* $NetBSD: iostat.c,v 1.5 1996/05/10 23:16:35 thorpej Exp $ */ /* @@ -167,9 +167,12 @@ print_io(void) { int n, count = 0; - int curr; - etime = naptime; + + if (state == BOOT) + etime = 1.0; + else + etime = naptime; /* XXX engine internals: save and restore curr_line for bcache */ curr = curr_line;