]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Don't convert nsec to usec if we need nsec 7520/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 26 Feb 2019 15:33:36 +0000 (16:33 +0100)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Tue, 26 Feb 2019 15:36:21 +0000 (16:36 +0100)
pdns/dnstap.cc

index 65d96736768fd452498a0a4ad3ed2e7c4d8db060..b98b21672d426b437d18d5261ef0746ca86d60af 100644 (file)
@@ -36,11 +36,11 @@ DnstapMessage::DnstapMessage(const std::string& identity, const ComboAddress* re
 
   if (queryTime != nullptr) {
     message->set_query_time_sec(queryTime->tv_sec);
-    message->set_query_time_nsec(queryTime->tv_nsec / 1000);
+    message->set_query_time_nsec(queryTime->tv_nsec);
   }
   if (responseTime != nullptr) {
     message->set_response_time_sec(responseTime->tv_sec);
-    message->set_response_time_nsec(responseTime->tv_nsec / 1000);
+    message->set_response_time_nsec(responseTime->tv_nsec);
   }
 
   if (!dh->qr) {