Skip to content

Commit

Permalink
Refresh sysinfo CPU
Browse files Browse the repository at this point in the history
Without this now sysinfo `sys.processors().len()` returns 0.
  • Loading branch information
Frederick888 committed Feb 2, 2022
1 parent d7dc710 commit f54cc1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/data_harvester.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit f54cc1a

Please sign in to comment.