From 2459ccb484fc259e767f09515da280cf4d8fc665 Mon Sep 17 00:00:00 2001 From: "Kenneth D. Merry" Date: Mon, 5 Oct 1998 04:04:27 +0000 Subject: [PATCH] Fix a core-dump situation in ":boot" mode in the vmstat display. Reported by: bde --- usr.bin/systat/vmstat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c index 79968f38dd9..cca378d8d6d 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,