Skip to content

Commit

Permalink
NetBSD: Remove second total_cpu_time calculation.
Browse files Browse the repository at this point in the history
  • Loading branch information
g0mb4 committed Dec 6, 2024
1 parent c1ecf84 commit 0624b75
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/bsdcommon.cc
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ static void proc_from_bsdproc(struct process *proc, BSD_COMMON_PROC_STRUCT *p) {
#error Not supported BSD system
#endif

proc->total_cpu_time = proc->user_time + proc->kernel_time;
if (proc->previous_user_time == ULONG_MAX) {
proc->previous_user_time = proc->user_time;
}
Expand Down

0 comments on commit 0624b75

Please sign in to comment.