Skip to content

Commit

Permalink
Fix an incorrect memset pointer in PCP platform CPU handling
Browse files Browse the repository at this point in the history
  • Loading branch information
natoscott authored and BenBE committed Feb 4, 2023
1 parent 5406f18 commit 5c14970
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcp/PCPProcessList.c
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ static void PCPProcessList_updateAllCPUTime(PCPProcessList* this, PCPMetric metr
{
pmAtomValue* value = &this->cpu[cpumetric];
if (PCPMetric_values(metric, value, 1, PM_TYPE_U64) == NULL)
memset(&value, 0, sizeof(pmAtomValue));
memset(value, 0, sizeof(pmAtomValue));
}

static void PCPProcessList_updatePerCPUTime(PCPProcessList* this, PCPMetric metric, CPUMetric cpumetric)
Expand Down

0 comments on commit 5c14970

Please sign in to comment.