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:
parent
961a5dae5c
commit
157b158ea9
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user