]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix unbound-dnstap-socket time fraction conversion for printout.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 25 May 2023 14:27:19 +0000 (16:27 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Thu, 25 May 2023 14:27:19 +0000 (16:27 +0200)
dnstap/unbound-dnstap-socket.c
doc/Changelog

index 1927451fe9f2df0db7778f6066342095a49eb16f..d172a6744a07395e7c7149d22d13002759daba51 100644 (file)
@@ -504,7 +504,7 @@ static char* tv_to_str(protobuf_c_boolean has_time_sec, uint64_t time_sec,
        time_t time_t_sec;
        memset(&tv, 0, sizeof(tv));
        if(has_time_sec) tv.tv_sec = time_sec;
-       if(has_time_nsec) tv.tv_usec = time_nsec;
+       if(has_time_nsec) tv.tv_usec = time_nsec/1000;
 
        buf[0]=0;
        time_t_sec = tv.tv_sec;
index 320803f093de019bdb912dd13c813c7267b39a03..07c2e81ac55b1bfe65d622f62904f32e5af2f75c 100644 (file)
@@ -1,5 +1,6 @@
 25 May 2023: Wouter
        - Fix unbound-dnstap-socket printout when no query is present.
+       - Fix unbound-dnstap-socket time fraction conversion for printout.
 
 19 May 2023: Wouter
        - Fix RPZ removal of client-ip, nsip, nsdname triggers from IXFR.