From d4c0349de9546b31a0d029004ff8af92ab451a05 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Mon, 11 Mar 2019 09:44:40 -0700 Subject: Revert "#ifdef'd out multipath/QoS statistics buffers allocations for ZT_PROTOCOL_VERSION<10" This reverts commit 270debb3fc39c3f1f6a3f6fbc2c5fb6183182c8f. --- node/Path.hpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'node/Path.hpp') diff --git a/node/Path.hpp b/node/Path.hpp index 6acba172..a9e7d84d 100644 --- a/node/Path.hpp +++ b/node/Path.hpp @@ -161,7 +161,6 @@ public: ~Path() { -#if ZT_PROTO_VERSION >= 10 delete _throughputSamples; delete _latencySamples; delete _packetValiditySamples; @@ -170,7 +169,6 @@ public: _latencySamples = NULL; _packetValiditySamples = NULL; _throughputDisturbanceSamples = NULL; -#endif } /** @@ -653,14 +651,12 @@ public: * Initialize statistical buffers */ inline void prepareBuffers() { -#if ZT_PROTO_VERSION >= 10 _throughputSamples = new RingBuffer(ZT_PATH_QUALITY_METRIC_WIN_SZ); _latencySamples = new RingBuffer(ZT_PATH_QUALITY_METRIC_WIN_SZ); _packetValiditySamples = new RingBuffer(ZT_PATH_QUALITY_METRIC_WIN_SZ); _throughputDisturbanceSamples = new RingBuffer(ZT_PATH_QUALITY_METRIC_WIN_SZ); memset(_ifname, 0, 16); memset(_addrString, 0, sizeof(_addrString)); -#endif } private: @@ -706,6 +702,8 @@ private: float _lastComputedThroughputDistCoeff; unsigned char _lastAllocation; + + // cached human-readable strings for tracing purposes char _ifname[16]; char _addrString[256]; -- cgit v1.2.3