Browse Source

[multiple] prefer monotonic time for internal use

(this commit, actually switch to call new func to get monotonic time)
master
Glenn Strauss 9 months ago
parent
commit
c035eb7733
  1. 2
      src/server.c

2
src/server.c

@ -229,7 +229,7 @@ static time_t
server_monotonic_secs (void)
{
struct timespec ts;
return (0 == log_clock_gettime_realtime(&ts))
return (0 == log_clock_gettime_monotonic(&ts))
? ts.tv_sec
: log_monotonic_secs;
}

Loading…
Cancel
Save