From 2fff5134cf89ce79c63f9c7621e3d74a56be3104 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=B4=80=E1=B4=8D=E1=B4=9B=E1=B4=8F=E1=B4=80=E1=B4=87?= =?UTF-8?q?=CA=80?= Date: Tue, 14 Oct 2025 01:38:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20sysinfo=20=E5=88=9D?= =?UTF-8?q?=E5=A7=8B=E5=80=BC=E5=81=B6=E5=B0=94=E5=BC=82=E5=B8=B8=E5=81=8F?= =?UTF-8?q?=E9=AB=98=E7=9A=84=E9=97=AE=E9=A2=98=20(#499)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- crates/bili_sync/src/api/routes/ws/mod.rs | 3 --- 1 file changed, 3 deletions(-) diff --git a/crates/bili_sync/src/api/routes/ws/mod.rs b/crates/bili_sync/src/api/routes/ws/mod.rs index 7afc3e8..20c3439 100644 --- a/crates/bili_sync/src/api/routes/ws/mod.rs +++ b/crates/bili_sync/src/api/routes/ws/mod.rs @@ -238,9 +238,6 @@ impl WebSocketHandler { let self_pid = get_current_pid().expect("Unsupported platform"); let mut system = System::new(); let mut disks = Disks::new(); - // system 需要初始进行一次刷新并等待一小会儿,因为有些数据是根据 diff 计算的 - system.refresh_needed(self_pid); - std::thread::sleep(sysinfo::MINIMUM_CPU_UPDATE_INTERVAL); while tick_rx.blocking_recv().is_some() { system.refresh_needed(self_pid); disks.refresh_needed(self_pid);