svn commit: r277570 - head/usr.bin/vmstat
Will Andrews
will at FreeBSD.org
Fri Jan 23 16:18:40 UTC 2015
Author: will
Date: Fri Jan 23 16:18:39 2015
New Revision: 277570
URL: https://svnweb.freebsd.org/changeset/base/277570
Log:
Use CLOCK_UPTIME to get the uptime instead of CLOCK_MONOTONIC.
Submitted by: asomers
MFC after: 1 week
Sponsored by: Spectra Logic
MFSpectraBSD: 1066740 on 2014/06/04
Modified:
head/usr.bin/vmstat/vmstat.c
Modified: head/usr.bin/vmstat/vmstat.c
==============================================================================
--- head/usr.bin/vmstat/vmstat.c Fri Jan 23 16:15:55 2015 (r277569)
+++ head/usr.bin/vmstat/vmstat.c Fri Jan 23 16:18:39 2015 (r277570)
@@ -411,7 +411,7 @@ getuptime(void)
{
struct timespec sp;
- (void)clock_gettime(CLOCK_MONOTONIC, &sp);
+ (void)clock_gettime(CLOCK_UPTIME, &sp);
return(sp.tv_sec);
}
More information about the svn-src-head
mailing list