summaryrefslogtreecommitdiffstats
path: root/src/app
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2019-12-13 02:42:36 -0500
committerClement Tsang <34804052+ClementTsang@users.noreply.github.com>2019-12-13 02:42:36 -0500
commit12b4518fa1c9b76ada04a57aa11ccc96a5529c2d (patch)
tree1753e7b4fcb24a67b929a0d140330726a58b2325 /src/app
parenta6b746896bb2e9e51910b218a54ceddb61ebc6a9 (diff)
Fixed problem with invalid vector index access.
Diffstat (limited to 'src/app')
-rw-r--r--src/app/data_collection.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/app/data_collection.rs b/src/app/data_collection.rs
index 08f071ff..73c0008c 100644
--- a/src/app/data_collection.rs
+++ b/src/app/data_collection.rs
@@ -72,6 +72,10 @@ impl DataState {
pub fn init(&mut self) {
self.sys.refresh_system();
self.sys.refresh_network();
+ if !cfg!(target_os = "linux") {
+ // For now, might be just windows tbh
+ self.sys.refresh_processes();
+ }
}
pub async fn update_data(&mut self) {