diff options
| author | 2020-02-21 07:44:50 +0000 | |
|---|---|---|
| committer | 2020-02-21 07:44:50 +0000 | |
| commit | b53d8310f9eab74bd581ef4f72f2526f43351871 (patch) | |
| tree | 6a6f056ef50129168e3feefff5ecb65588b4440e /usr.bin/dig/lib/isc/unix/app.c | |
| parent | Adjust a comment, no functional change (diff) | |
| download | wireguard-openbsd-b53d8310f9eab74bd581ef4f72f2526f43351871.tar.xz wireguard-openbsd-b53d8310f9eab74bd581ef4f72f2526f43351871.zip | |
Read CLOCK_MONOTONIC when we need timestamps to compare and use
time(3) for the wall clock.
prodding & OK jung
Diffstat (limited to 'usr.bin/dig/lib/isc/unix/app.c')
| -rw-r--r-- | usr.bin/dig/lib/isc/unix/app.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/dig/lib/isc/unix/app.c b/usr.bin/dig/lib/isc/unix/app.c index 95b5e1ab81a..2fe62279087 100644 --- a/usr.bin/dig/lib/isc/unix/app.c +++ b/usr.bin/dig/lib/isc/unix/app.c @@ -164,7 +164,7 @@ evloop(isc_appctx_t *ctx) { else { uint64_t us; - clock_gettime(CLOCK_REALTIME, &now); + clock_gettime(CLOCK_MONOTONIC, &now); us = isc_time_microdiff(&when, &now); if (us == 0) call_timer_dispatch = ISC_TRUE; |
