From 12b4518fa1c9b76ada04a57aa11ccc96a5529c2d Mon Sep 17 00:00:00 2001 From: Clement Tsang <34804052+ClementTsang@users.noreply.github.com> Date: Fri, 13 Dec 2019 02:42:36 -0500 Subject: Fixed problem with invalid vector index access. --- src/app/data_collection.rs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/app') 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) { -- cgit v1.2.3