From 65d72ca39967c562281fe6b98f602a53906e6c01 Mon Sep 17 00:00:00 2001 From: Lloyd Date: Fri, 7 Nov 2025 16:20:30 +0000 Subject: [PATCH] fix: update noise floor RRD metrics format to use 'U' for undefined values --- repeater/storage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/repeater/storage.py b/repeater/storage.py index f4fe7ef..b6f4d00 100644 --- a/repeater/storage.py +++ b/repeater/storage.py @@ -406,8 +406,8 @@ class StorageCollector: pass # Update RRD with noise floor only, set other metrics to undefined - # Format: timestamp:rx:tx:drop:rssi:snr:length:score:neighbors:noise_floor:type_0:type_1:... - values = f"{timestamp}:0:0:0:U:U:U:U:U:{noise_floor}" + ":0" * 17 # 17 packet type counters + # Format: timestamp:rx:tx:drop:rssi:snr:length:score:neighbors:noise_floor:type_0:...type_15:type_other + values = f"{timestamp}:U:U:U:U:U:U:U:U:{noise_floor}" + ":U" * 17 # 17 packet type counters rrdtool.update(str(self.rrd_path), values)