From 7f7a328977eda28725f2b67d7f8ab2e3697fa654 Mon Sep 17 00:00:00 2001 From: Clement Tsang <34804052+ClementTsang@users.noreply.github.com> Date: Fri, 20 Jan 2023 00:07:52 -0500 Subject: [PATCH] other: refresh cpu for sysinfo users if proc is used (#991) --- src/app/data_harvester.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }