other: refresh cpu for sysinfo users if proc is used (#991)

This commit is contained in:
Clement Tsang 2023-01-20 00:07:52 -05:00 committed by GitHub
parent 22e386a38c
commit 7f7a328977
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}