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
This commit is contained in:
Will Andrews 2015-01-23 16:18:39 +00:00
parent 961a5dae5c
commit 157b158ea9

View File

@ -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);
}