From b574ad6d4ac4afb89624a5451ee835a2cfabcf9f Mon Sep 17 00:00:00 2001 From: "Joseph T. Lyons" Date: Mon, 18 Nov 2024 15:37:37 -0500 Subject: [PATCH] Reduce system event sampling rate --- crates/client/src/telemetry.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/client/src/telemetry.rs b/crates/client/src/telemetry.rs index 27a49a9816..b0e7d1cbc6 100644 --- a/crates/client/src/telemetry.rs +++ b/crates/client/src/telemetry.rs @@ -312,7 +312,7 @@ impl Telemetry { // Waiting some amount of time before the first query is important to get a reasonable value // https://docs.rs/sysinfo/0.29.10/sysinfo/trait.ProcessExt.html#tymethod.cpu_usage - const DURATION_BETWEEN_SYSTEM_EVENTS: Duration = Duration::from_secs(4 * 60); + const DURATION_BETWEEN_SYSTEM_EVENTS: Duration = Duration::from_secs(10 * 60 * 4); loop { smol::Timer::after(DURATION_BETWEEN_SYSTEM_EVENTS).await;