Skip to content

Commit

Permalink
Update run_time for MacOS processes
Browse files Browse the repository at this point in the history
  • Loading branch information
janlugt committed Feb 29, 2024
1 parent 26402d2 commit 3a95615
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/unix/apple/macos/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,7 @@ pub(crate) fn update_process(
}
};
p.status = thread_status;
p.run_time = now.saturating_sub(start_time);

Check failure on line 689 in src/unix/apple/macos/process.rs

View workflow job for this annotation

GitHub Actions / Check stable / x86_64-apple-darwin

cannot find value `start_time` in this scope

Check failure on line 689 in src/unix/apple/macos/process.rs

View workflow job for this annotation

GitHub Actions / Check nightly / x86_64-apple-darwin

cannot find value `start_time` in this scope

if refresh_kind.cpu() || refresh_kind.memory() {
let task_info = get_task_info(pid);
Expand Down

0 comments on commit 3a95615

Please sign in to comment.