From f7130ac6b575ea4fe91d97bd74e5bf5265df93c5 Mon Sep 17 00:00:00 2001 From: Tomek Mierzwa <16899265+tmierzwa@users.noreply.github.com> Date: Wed, 21 Oct 2026 14:22:25 +0200 Subject: [PATCH] Fix swapped path responsiveness metrics The "Paths Unresponsive" metric (field PathsUnresponsive) returned Transport::paths_responsive() and "Paths Responsive" returned Transport::paths_unresponsive(), so remote management showed each counter under the other's name. Return the matching counter for each field. Co-Authored-By: Claude Opus 5.5 --- src/microReticulum/Provisioning/BuiltinNamespaces.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/microReticulum/Provisioning/BuiltinNamespaces.cpp b/src/microReticulum/Provisioning/BuiltinNamespaces.cpp index 0170b2be..c78e44bc 100644 --- a/src/microReticulum/Provisioning/BuiltinNamespaces.cpp +++ b/src/microReticulum/Provisioning/BuiltinNamespaces.cpp @@ -182,8 +182,8 @@ namespace RNS { namespace Provisioning { .metric_int("Paths Added", Ns::Info::Metrics::Field::PathsAdded, []() { return RNS::Transport::paths_added(); }) .metric_int("Paths Updated", Ns::Info::Metrics::Field::PathsUpdated, []() { return RNS::Transport::paths_updated(); }) .metric_int("Paths Failed", Ns::Info::Metrics::Field::PathsFailed, []() { return RNS::Transport::paths_failed(); }) - .metric_int("Paths Unresponsive", Ns::Info::Metrics::Field::PathsUnresponsive, []() { return RNS::Transport::paths_responsive(); }) - .metric_int("Paths Responsive", Ns::Info::Metrics::Field::PathsResponsive, []() { return RNS::Transport::paths_unresponsive(); }) + .metric_int("Paths Unresponsive", Ns::Info::Metrics::Field::PathsUnresponsive, []() { return RNS::Transport::paths_unresponsive(); }) + .metric_int("Paths Responsive", Ns::Info::Metrics::Field::PathsResponsive, []() { return RNS::Transport::paths_responsive(); }) .metric_int("Paths Unknown", Ns::Info::Metrics::Field::PathsUnknown, []() { return RNS::Transport::paths_unknown(); }) #if RNS_NEIGHBOR_PROBING .metric_int("Probes Received", Ns::Info::Metrics::Field::ProbesReceived, []() { return RNS::Transport::probes_received(); })