summaryrefslogtreecommitdiffstats
path: root/src/app/data_harvester/processes.rs
diff options
context:
space:
mode:
authorClement Tsang <34804052+ClementTsang@users.noreply.github.com>2020-12-03 23:45:54 -0500
committerGitHub <noreply@github.com>2020-12-03 23:45:54 -0500
commite56367fcbb933850f82140962542fb3f31627517 (patch)
tree72a6be765b490107fbfd9a4aa876e8bbcd77134f /src/app/data_harvester/processes.rs
parent86169871cb51f0524300878b8c9195eff33a91fb (diff)
refactor: Clean up some parts of data harvesting (#336)
Diffstat (limited to 'src/app/data_harvester/processes.rs')
-rw-r--r--src/app/data_harvester/processes.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/app/data_harvester/processes.rs b/src/app/data_harvester/processes.rs
index a79f8585..df7ae032 100644
--- a/src/app/data_harvester/processes.rs
+++ b/src/app/data_harvester/processes.rs
@@ -404,7 +404,10 @@ pub fn get_process_data(
Ok(process_vector)
} else {
- Ok(Vec::new())
+ trace!("Could not calculate CPU usage.");
+ Err(BottomError::GenericError(
+ "Could not calculate CPU usage.".to_string(),
+ ))
}
}