From f37b8d9ff4c95f7867f0f7704c6c1b228457e0a6 Mon Sep 17 00:00:00 2001 From: jasonwitty Date: Tue, 26 Aug 2025 00:22:29 -0700 Subject: [PATCH] chore(agent): fix clippy unused mut on non-linux process list --- socktop_agent/src/metrics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/socktop_agent/src/metrics.rs b/socktop_agent/src/metrics.rs index a5d4ee6..fa1291d 100644 --- a/socktop_agent/src/metrics.rs +++ b/socktop_agent/src/metrics.rs @@ -444,7 +444,7 @@ pub async fn collect_processes_all(state: &AppState) -> ProcessesPayload { // Sleep briefly to allow cpu deltas to accumulate; 200-250ms is typical; we keep 200ms to lower agent overhead. sleep(Duration::from_millis(delay_ms.min(500))).await; // Second refresh: only CPU counters (lighter than full everything) to reduce overhead. - let (total_count, mut procs) = { + let (total_count, procs) = { let mut sys = state.sys.lock().await; // Build a lightweight refresh kind: only CPU times. let cpu_only = ProcessRefreshKind::nothing().with_cpu();