]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
auth: make {avg,receive,cache,backend,send}_latency static
authorChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Wed, 3 Aug 2022 18:53:16 +0000 (20:53 +0200)
committerChris Hofstaedtler <chris.hofstaedtler@deduktiva.com>
Sat, 10 Sep 2022 09:49:36 +0000 (11:49 +0200)
pdns/auth-main.cc
pdns/auth-main.hh

index e9b4d9dbfa7932888c41715c3944c057c61a4819..04e64f937f20fe91d92fd2add488550db608e17f 100644 (file)
@@ -123,7 +123,7 @@ std::unique_ptr<DNSProxy> DP{nullptr};
 std::unique_ptr<DynListener> dl{nullptr};
 CommunicatorClass Communicator;
 shared_ptr<UDPNameserver> N;
-double avg_latency{0.0}, receive_latency{0.0}, cache_latency{0.0}, backend_latency{0.0}, send_latency{0.0};
+static double avg_latency{0.0}, receive_latency{0.0}, cache_latency{0.0}, backend_latency{0.0}, send_latency{0.0};
 unique_ptr<TCPNameserver> TN;
 static vector<DNSDistributor*> g_distributors;
 vector<std::shared_ptr<UDPNameserver>> g_udpReceivers;
index f373b6cd5aacf31ac484e2a9d0c5f5907ad6520a..c31c6a191f29f91a6773d473aafda6e8e5a40e61 100644 (file)
@@ -45,7 +45,6 @@ extern std::unique_ptr<DynListener> dl;
 extern CommunicatorClass Communicator;
 extern std::shared_ptr<UDPNameserver> N;
 extern vector<std::shared_ptr<UDPNameserver>> g_udpReceivers;
-extern double avg_latency;
 extern std::unique_ptr<TCPNameserver> TN;
 extern void declareArguments();
 extern void declareStats();