]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Remove useless call to gettimeofday() in the security poll 7115/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 31 Oct 2018 09:50:09 +0000 (10:50 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Wed, 31 Oct 2018 09:50:09 +0000 (10:50 +0100)
pdns/dnsdistdist/dnsdist-secpoll.cc

index b40bbf5ab7b730951369cfc0fd7174e132ac0f2a..5a156cb836f3d8bef5d504d31d3a7bbf77e01ce4 100644 (file)
@@ -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() != '.') {