Skip to content

Commit

Permalink
Merge pull request #1212 from janlugt/master
Browse files Browse the repository at this point in the history
Bugfix: Update `run_time` for MacOS processes during refresh
  • Loading branch information
GuillaumeGomez authored Mar 1, 2024
2 parents 26402d2 + 795ec1a commit fbb9dbf
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(p.start_time);

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

0 comments on commit fbb9dbf

Please sign in to comment.