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