From: Star Zeng Date: Mon, 7 Aug 2017 07:28:21 +0000 (+0800) Subject: PerformancePkg DP: Init CustomCumulativeData.MinDur X-Git-Tag: edk2-stable201903~3643 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=ce10f482f786283b160146bb7ba2d9770479c10c PerformancePkg DP: Init CustomCumulativeData.MinDur Init CustomCumulativeData.MinDur to PERF_MAXDUR, otherwise the MinDur displayed for custom cumulative data will be always 0, but not the real shortest duration. Cc: Liming Gao Cc: Cinnamon Shia Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng Reviewed-by: Liming Gao --- diff --git a/PerformancePkg/Dp_App/Dp.c b/PerformancePkg/Dp_App/Dp.c index 4cdc39edb4..484ef2d50b 100644 --- a/PerformancePkg/Dp_App/Dp.c +++ b/PerformancePkg/Dp_App/Dp.c @@ -382,7 +382,7 @@ InitializeDp ( if (CustomCumulativeToken != NULL) { CustomCumulativeData = AllocateZeroPool (sizeof (PERF_CUM_DATA)); ASSERT (CustomCumulativeData != NULL); - CustomCumulativeData->MinDur = 0; + CustomCumulativeData->MinDur = PERF_MAXDUR; CustomCumulativeData->MaxDur = 0; CustomCumulativeData->Count = 0; CustomCumulativeData->Duration = 0;