summaryrefslogtreecommitdiffstats
path: root/usr.bin/dig/lib/isc/unix/app.c
diff options
context:
space:
mode:
authorflorian <florian@openbsd.org>2020-02-21 07:44:50 +0000
committerflorian <florian@openbsd.org>2020-02-21 07:44:50 +0000
commitb53d8310f9eab74bd581ef4f72f2526f43351871 (patch)
tree6a6f056ef50129168e3feefff5ecb65588b4440e /usr.bin/dig/lib/isc/unix/app.c
parentAdjust a comment, no functional change (diff)
downloadwireguard-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.c2
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;