mirror of
https://github.com/ClementTsang/bottom.git
synced 2025-04-08 17:05:59 +02:00
Refresh sysinfo CPU
Without this now sysinfo `sys.processors().len()` returns 0.
This commit is contained in:
parent
d7dc710ddb
commit
f54cc1a2cf
@ -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…
x
Reference in New Issue
Block a user