Subject: CVS commit: basesrc/usr.bin/vmstat
To: None <source-changes@netbsd.org>
From: Nathan J Williams <nathanw@netbsd.org>
List: source-changes
Date: 11/18/2002 05:17:25
Module Name:	basesrc
Committed By:	nathanw
Date:		Mon Nov 18 03:17:24 UTC 2002

Modified Files:
	basesrc/usr.bin/vmstat: vmstat.c

Log Message:
In getuptime(), use kread() to get the current time as well as boottime,
instead of calling time(3).

This makes rate calculations of crash dumps sensible; in contrast,
subtracting the boot time of the crash dump from the current time of the
running system produces a not-very-meaningful number.


To generate a diff of this commit:
cvs rdiff -r1.104 -r1.105 basesrc/usr.bin/vmstat/vmstat.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.