mirror of
https://github.com/ClementTsang/bottom
synced 2024-11-22 20:23:12 +00:00
Refresh sysinfo CPU
Without this now sysinfo `sys.processors().len()` returns 0.
This commit is contained in:
parent
d7dc710ddb
commit
f54cc1a2cf
1 changed files with 1 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue