From 650754df94674045552f1077dc7c499d71f61b71 Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 31 Oct 2018 10:50:09 +0100 Subject: [PATCH] dnsdist: Remove useless call to gettimeofday() in the security poll --- pdns/dnsdistdist/dnsdist-secpoll.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/pdns/dnsdistdist/dnsdist-secpoll.cc b/pdns/dnsdistdist/dnsdist-secpoll.cc index b40bbf5ab7..5a156cb836 100644 --- a/pdns/dnsdistdist/dnsdist-secpoll.cc +++ b/pdns/dnsdistdist/dnsdist-secpoll.cc @@ -193,11 +193,7 @@ void doSecPoll(const std::string& suffix) const std::string pkgv(PACKAGEVERSION); bool releaseVersion = pkgv.find("0.0.") != 0; - - struct timeval now; - gettimeofday(&now, 0); - - const std::string version = "dnsdist-" + std::string(PACKAGEVERSION); + const std::string version = "dnsdist-" + pkgv; std::string queriedName = version.substr(0, 63) + ".security-status." + suffix; if (*queriedName.rbegin() != '.') { -- 2.47.2