From d8fe027875427be6f5e598fc82373ecb5ed84859 Mon Sep 17 00:00:00 2001 From: Nathan Scott Date: Tue, 6 Jun 2023 09:18:06 +1000 Subject: Remove duplicate zeroing of global task accounting values on MacOS This has already been performed in ProcessList.c before calling the platform-specific code, so this is a no-op. --- darwin/DarwinProcessList.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'darwin') diff --git a/darwin/DarwinProcessList.c b/darwin/DarwinProcessList.c index bf311dc7..c10e772c 100644 --- a/darwin/DarwinProcessList.c +++ b/darwin/DarwinProcessList.c @@ -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. -- cgit v1.2.3