refactor: reduce cpu usage for proxies

This commit is contained in:
zhom
2025-12-02 22:30:40 +04:00
parent ef00c59063
commit 57ead61139
5 changed files with 148 additions and 88 deletions
+1 -1
View File
@@ -133,6 +133,6 @@ pub fn generate_proxy_id() -> String {
pub fn is_process_running(pid: u32) -> bool {
use sysinfo::{Pid, System};
let system = System::new_all();
let system = System::new();
system.process(Pid::from(pid as usize)).is_some()
}