diff options
author | ken <ken@FreeBSD.org> | 1998-10-05 04:04:27 +0000 |
---|---|---|
committer | ken <ken@FreeBSD.org> | 1998-10-05 04:04:27 +0000 |
commit | bd9fb75d918bb9350204c92d6128208a2d8a5c8d (patch) | |
tree | cad7b7e39d49a41893b0b094522ab14e7a1a18a5 /usr.bin/systat/vmstat.c | |
parent | cf607d3c0f349899af2188105ac2e82439c31aee (diff) | |
download | FreeBSD-src-bd9fb75d918bb9350204c92d6128208a2d8a5c8d.zip FreeBSD-src-bd9fb75d918bb9350204c92d6128208a2d8a5c8d.tar.gz |
Fix a core-dump situation in ":boot" mode in the vmstat display.
Reported by: bde
Diffstat (limited to 'usr.bin/systat/vmstat.c')
-rw-r--r-- | usr.bin/systat/vmstat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c index 79968f3..cca378d 100644 --- a/usr.bin/systat/vmstat.c +++ b/usr.bin/systat/vmstat.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 1/12/94"; #endif static const char rcsid[] = - "$Id: vmstat.c,v 1.26 1998/07/06 22:08:00 bde Exp $"; + "$Id: vmstat.c,v 1.27 1998/09/15 08:16:40 gibbs Exp $"; #endif /* not lint */ /* @@ -771,7 +771,7 @@ dinfo(dn, c, now, then) busy_seconds = compute_etime(now->busy_time, then ? then->busy_time : - then->dinfo->devices[di].dev_creation_time); + now->dinfo->devices[di].dev_creation_time); if (compute_stats(&now->dinfo->devices[di], then ? &then->dinfo->devices[di] : NULL, busy_seconds, |