Skip to content

Commit

Permalink
Remove duplicate zeroing of global task accounting values on MacOS
Browse files Browse the repository at this point in the history
This has already been performed in ProcessList.c before calling
the platform-specific code, so this is a no-op.
  • Loading branch information
natoscott authored and BenBE committed Jun 6, 2023
1 parent 0fb0d75 commit d8fe027
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions darwin/DarwinProcessList.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,6 @@ void ProcessList_goThroughEntries(ProcessList* super) {

const double time_interval_ns = Platform_schedulerTicksToNanoseconds(dpl->global_diff) / (double) host->activeCPUs;

/* Clear the thread counts */
super->kernelThreads = 0;
super->userlandThreads = 0;
super->totalTasks = 0;
super->runningTasks = 0;

/* We use kinfo_procs for initial data since :
*
* 1) They always succeed.
Expand Down

0 comments on commit d8fe027

Please sign in to comment.