From 7caf2f4bfb2cc097377dca8f2247507824a4cb05 Mon Sep 17 00:00:00 2001 From: jasonwitty Date: Wed, 27 Aug 2025 17:15:35 -0700 Subject: [PATCH] remove ununused var --- socktop_agent/src/metrics.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/socktop_agent/src/metrics.rs b/socktop_agent/src/metrics.rs index e35f048..d7d7aa1 100644 --- a/socktop_agent/src/metrics.rs +++ b/socktop_agent/src/metrics.rs @@ -404,12 +404,6 @@ pub async fn collect_processes_all(state: &AppState) -> ProcessesPayload { /// Collect all processes (non-Linux): optimized for reduced allocations and selective updates. #[cfg(not(target_os = "linux"))] pub async fn collect_processes_all(state: &AppState) -> ProcessesPayload { - // Get configurable CPU threshold - let cpu_threshold: f32 = std::env::var("SOCKTOP_AGENT_PROCESS_CPU_THRESHOLD") - .ok() - .and_then(|v| v.parse().ok()) - .unwrap_or(0.1); // Default to 0.1% - // Adaptive TTL based on system load let sys_guard = state.sys.lock().await; let load = sys_guard.global_cpu_usage();