From 87f85bc18917cc6d0cee4f798ec87aad966743a7 Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Thu, 22 Aug 2024 08:42:09 -0700 Subject: [PATCH] that was supposed to be milliseconds --- gateway/src/metrics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gateway/src/metrics.rs b/gateway/src/metrics.rs index 9ef7ebfba3b..0070e353d62 100644 --- a/gateway/src/metrics.rs +++ b/gateway/src/metrics.rs @@ -299,7 +299,7 @@ impl MetricsConfig { "`metrics.sp_poll_interval_ms` probably shouldn't be 0 ms", ); let sp_poll_interval = - Duration::from_secs(self.sp_poll_interval_ms as u64); + Duration::from_millis(self.sp_poll_interval_ms as u64); let max_buffered_sample_chunks = { // Roughly how many times will we poll SPs for each metrics collection