Merge pull request #94 from Abdenasser/fix-networks

fixes 0 network tx/rx reported on windows and linux
This commit is contained in:
Abdenasser Elidrissi 2024-11-10 18:52:48 +01:00 committed by GitHub
commit dbd201d328
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -120,9 +120,8 @@ async fn get_processes(
.lock()
.map_err(|_| "Failed to lock system state")?;
sys.refresh_all();
sys.refresh_networks();
sys.refresh_networks_list();
sys.refresh_disks_list();
sys.refresh_disks();
// Collect all the process data we need while holding sys lock
processes_data = sys