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
1 changed files with 4 additions and 2 deletions

View File

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