diff options
author | Nathan Scott <nathans@redhat.com> | 2023-06-06 09:18:06 +1000 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2023-06-06 12:18:36 +0200 |
commit | d8fe027875427be6f5e598fc82373ecb5ed84859 (patch) | |
tree | 373371dbeee1947614094b8f9bf8e633106a6e33 | |
parent | 0fb0d75433191ce8056ff1b32ae371f4c4b0a6e0 (diff) |
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.
-rw-r--r-- | darwin/DarwinProcessList.c | 6 |
1 files changed, 0 insertions, 6 deletions
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. |