summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2022-02-01 17:28:13 -0800
committerGitHub <noreply@github.com>2022-02-01 17:28:13 -0800
commitb59e34f159a729352cda8a3c33c5ab52987a4487 (patch)
treeb1e5d07d23e3905db132e678046a92a573079af5
parentd7dc710ddbefad5ebea15cfe926a59ac689dc085 (diff)
parentf54cc1a2cfb4c22cdc4b0f9b18766ceb924c4c39 (diff)
Merge pull request #669 from Frederick888/fix-num-cpus
Refresh sysinfo CPU
-rw-r--r--src/app/data_harvester.rs1
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 {