diff options
author | Frederick Zhang <frederick888@tsundere.moe> | 2022-02-02 11:41:38 +1100 |
---|---|---|
committer | Frederick Zhang <frederick888@tsundere.moe> | 2022-02-02 11:41:38 +1100 |
commit | f54cc1a2cfb4c22cdc4b0f9b18766ceb924c4c39 (patch) | |
tree | b1e5d07d23e3905db132e678046a92a573079af5 /src | |
parent | d7dc710ddbefad5ebea15cfe926a59ac689dc085 (diff) |
Refresh sysinfo CPU
Without this now sysinfo `sys.processors().len()` returns 0.
Diffstat (limited to 'src')
-rw-r--r-- | src/app/data_harvester.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/app/data_harvester.rs b/src/app/data_harvester.rs index 59e01237..86e1a4ca 100644 --- a/src/app/data_harvester.rs +++ b/src/app/data_harvester.rs @@ -211,6 +211,7 @@ impl DataCollector { #[cfg(not(target_os = "linux"))] { if self.widgets_to_harvest.use_proc { + self.sys.refresh_cpu(); self.sys.refresh_processes(); } if self.widgets_to_harvest.use_temp { |