From 78bcb7886ad29bf896c221bb161cfe062078e790 Mon Sep 17 00:00:00 2001 From: Nils Andreas Svee Date: Tue, 13 Oct 2026 21:24:05 +0700 Subject: [PATCH] fix(controller): honor the configured ICMP probe interval Use advanced_settings.tick_interval for Controller schedules so ICMP probe pacing follows the configured measurement cadence. --- src/controller.rs | 3 ++- src/main.rs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controller.rs b/src/controller.rs index 258c414..6a131bf 100644 --- a/src/controller.rs +++ b/src/controller.rs @@ -50,6 +50,7 @@ impl Controller { active_streams: Arc>>, endpoint_streams: Arc>>, source: MeasurementSource, + period: Duration, ) -> Self { Self { reflector_rx, @@ -60,7 +61,7 @@ impl Controller { active_streams, endpoint_streams, source, - period: Duration::from_millis(500), + period, next_stream_id: 0, stream_ids: HashMap::new(), } diff --git a/src/main.rs b/src/main.rs index cef3c66..02074e1 100644 --- a/src/main.rs +++ b/src/main.rs @@ -332,6 +332,7 @@ fn run(settings: &Settings) -> anyhow::Result<()> { Arc::clone(&active_streams), Arc::clone(&endpoint_streams), source, + Duration::from_secs_f64(settings.advanced_settings.tick_interval), ); let icmp_engine = { let _guard = rt.enter();