Some more changes to support sysinfo update

This commit is contained in:
Clement Tsang 2020-02-09 22:32:28 -05:00
parent dbc970abec
commit 7ec52b722b

View File

@ -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();
} }