From eb7f4d61a75ebbf4374ff9b478dd53456efb7614 Mon Sep 17 00:00:00 2001 From: Cort Buffington Date: Sat, 11 Jul 2026 21:23:44 -0500 Subject: [PATCH] ping-quality: set decay time constant to 5 min (was 15) --- hblink.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hblink.py b/hblink.py index 4748806..fd494e4 100755 --- a/hblink.py +++ b/hblink.py @@ -76,8 +76,8 @@ REPORT_RESYNC_SECONDS = 60 # missed pings both decay exponentially with this constant, VU-meter style: a # recent miss weighs most and old ones fade, so the quality value rises and falls # slowly and reflects *chronic* loss rather than momentary blips. Larger = slower -# / longer memory. ~15 min gives a clearly-moving-but-not-twitchy value. -PING_QUALITY_TAU = 900.0 +# / longer memory. ~5 min reflects sustained loss without dwelling on old history. +PING_QUALITY_TAU = 300.0 # Generic periodic-task runner replacing twisted's task.LoopingCall. Runs _func # every _interval seconds. Unlike a bare LoopingCall, a raised exception is logged