From ac9a0068352f6abe85406fe7478b9eed8102caf0 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Wed, 3 May 2023 15:07:30 -0700 Subject: [PATCH] Fix crash from bad instantiation of histogram --- node/Metrics.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/node/Metrics.cpp b/node/Metrics.cpp index aea57114c..8687a264b 100644 --- a/node/Metrics.cpp +++ b/node/Metrics.cpp @@ -177,8 +177,8 @@ namespace ZeroTier { { "zt_network_outgoing_packets", "number of outgoing packets per network" }; // PeerMetrics - prometheus::CustomFamily> peer_latency - { "zt_peer_latency", "peer latency (ms)", {{}}}; + prometheus::CustomFamily> peer_latency + { "zt_peer_latency", "peer latency (ms)", {}}; prometheus::simpleapi::gauge_family_t peer_path_count { "zt_peer_path_count", "number of paths to peer" }; prometheus::simpleapi::counter_family_t peer_incoming_packets