From f4c64801fa71cea53d8b48232edbe66c5421e211 Mon Sep 17 00:00:00 2001 From: travisladuke Date: Wed, 19 Jul 2023 11:51:58 -0700 Subject: [PATCH] Remove ZT_NO_METRICS ifdef --- osdep/Phy.hpp | 4 ---- tcp-proxy/tcp-proxy.cpp | 4 ---- 2 files changed, 8 deletions(-) diff --git a/osdep/Phy.hpp b/osdep/Phy.hpp index 58c403ac2..4a71629cc 100644 --- a/osdep/Phy.hpp +++ b/osdep/Phy.hpp @@ -50,9 +50,7 @@ #include #include -#ifndef ZT_NO_METRICS #include "../node/Metrics.hpp" -#endif #if defined(__linux__) || defined(linux) || defined(__LINUX__) || defined(__linux) #ifndef IPV6_DONTFRAG @@ -478,9 +476,7 @@ public: sizeof(struct sockaddr_in)) == (long)len); #endif if (sent) { -#ifndef ZT_NO_METRICS Metrics::udp_send += len; -#endif } return sent; diff --git a/tcp-proxy/tcp-proxy.cpp b/tcp-proxy/tcp-proxy.cpp index b8a753999..b73b001a2 100644 --- a/tcp-proxy/tcp-proxy.cpp +++ b/tcp-proxy/tcp-proxy.cpp @@ -41,13 +41,9 @@ #include #include -#define ZT_NO_METRICS 1 #include "../osdep/Phy.hpp" - -#ifndef ZT_NO_METRICS #include "../node/Metrics.hpp" -#endif #define ZT_TCP_PROXY_CONNECTION_TIMEOUT_SECONDS 300 #define ZT_TCP_PROXY_TCP_PORT 443