diff options
author | Clement Tsang <34804052+ClementTsang@users.noreply.github.com> | 2023-01-20 00:07:52 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-20 00:07:52 -0500 |
commit | 7f7a328977eda28725f2b67d7f8ab2e3697fa654 (patch) | |
tree | 86c1a2995b50c59d72db14fc36648429af0382ef /src/app | |
parent | 22e386a38c713c8aa7045e04b7d8c8e7216f7074 (diff) |
other: refresh cpu for sysinfo users if proc is used (#991)
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/data_harvester.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/data_harvester.rs b/src/app/data_harvester.rs index b4d437a5..36d705dc 100644 --- a/src/app/data_harvester.rs +++ b/src/app/data_harvester.rs @@ -182,7 +182,7 @@ impl DataCollector { self.sys.refresh_networks_list(); } - if cfg!(target_os = "freebsd") && self.widgets_to_harvest.use_cpu { + if self.widgets_to_harvest.use_proc || self.widgets_to_harvest.use_cpu { self.sys.refresh_cpu(); } |