mirror of
https://github.com/ClementTsang/bottom.git
synced 2026-05-04 22:10:36 +00:00
Some more changes to support sysinfo update
This commit is contained in:
@@ -105,9 +105,11 @@ impl DataState {
|
||||
pub async fn update_data(&mut self) {
|
||||
self.sys.refresh_system();
|
||||
|
||||
if !cfg!(target_os = "linux") {
|
||||
// For now, might be just windows tbh
|
||||
if cfg!(not(target_os = "linux")) {
|
||||
self.sys.refresh_processes();
|
||||
self.sys.refresh_components();
|
||||
}
|
||||
if cfg!(target_os = "windows") {
|
||||
self.sys.refresh_networks();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user