=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/systat/vmstat.c,v retrieving revision 1.89 retrieving revision 1.90 diff -u -r1.89 -r1.90 --- src/usr.bin/systat/vmstat.c 2018/11/17 23:10:08 1.89 +++ src/usr.bin/systat/vmstat.c 2019/01/20 03:53:03 1.90 @@ -1,4 +1,4 @@ -/* $OpenBSD: vmstat.c,v 1.89 2018/11/17 23:10:08 cheloha Exp $ */ +/* $OpenBSD: vmstat.c,v 1.90 2019/01/20 03:53:03 tedu Exp $ */ /* $NetBSD: vmstat.c,v 1.5 1996/05/10 23:16:40 thorpej Exp $ */ /*- @@ -97,7 +97,6 @@ int vm_keyboard_callback(int); static time_t t; -static double etime; static float hertz; static int nintr; static long *intrloc; @@ -336,6 +335,7 @@ u_int64_t inttotal, intcnt; int i, l, c; static int failcnt = 0, first_run = 0; + double etime; if (state == TIME) { if (!first_run) { @@ -676,7 +676,9 @@ static void dinfo(int dn, int c) { - double words, atime; + double words, atime, etime; + + etime = naptime; c += DISKCOL;