Skip to content

Commit

Permalink
fix(processes): fix getting cpu usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ravenclaw900 committed Oct 29, 2021
1 parent d131055 commit 11dda26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/src/systemdata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ pub async fn processes() -> Vec<types::ProcessData> {
for element in &processes {
// CPU could fail if the process terminates, if so skip the process
let cpu;
match element.cpu().await {
match element.cpu_usage().await {
Ok(unwrapped_cpu) => cpu = unwrapped_cpu,
Err(_) => continue,
}
Expand Down

0 comments on commit 11dda26

Please sign in to comment.