replace System::new_all with System::new

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2023-11-14 09:13:11 +08:00
parent d12352d568
commit eb58a39f57
3 changed files with 17 additions and 8 deletions
+1 -1
View File
@@ -603,7 +603,7 @@ async fn check_pid(postfix: &str) {
file.read_to_string(&mut content).ok();
let pid = content.parse::<usize>().unwrap_or(0);
if pid > 0 {
use hbb_common::sysinfo::{System};
use hbb_common::sysinfo::System;
let mut sys = System::new();
sys.refresh_processes();
if let Some(p) = sys.process(pid.into()) {