]> git.proxmox.com Git - mirror_edk2.git/commitdiff
PerformancePkg DP: Init CustomCumulativeData.MinDur
authorStar Zeng <star.zeng@intel.com>
Mon, 7 Aug 2017 07:28:21 +0000 (15:28 +0800)
committerStar Zeng <star.zeng@intel.com>
Mon, 14 Aug 2017 08:55:44 +0000 (16:55 +0800)
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 <liming.gao@intel.com>
Cc: Cinnamon Shia <cinnamon.shia@hpe.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Star Zeng <star.zeng@intel.com>
Reviewed-by: Liming Gao <liming.gao@intel.com>
PerformancePkg/Dp_App/Dp.c

index 4cdc39edb42e75ccf0221839550df5fa9fab0f2b..484ef2d50b80e9d81089a6ce5ab83ff315d8b148 100644 (file)
@@ -382,7 +382,7 @@ InitializeDp (
   if (CustomCumulativeToken != NULL) {\r
     CustomCumulativeData = AllocateZeroPool (sizeof (PERF_CUM_DATA));\r
     ASSERT (CustomCumulativeData != NULL);\r
-    CustomCumulativeData->MinDur = 0;\r
+    CustomCumulativeData->MinDur = PERF_MAXDUR;\r
     CustomCumulativeData->MaxDur = 0;\r
     CustomCumulativeData->Count  = 0;\r
     CustomCumulativeData->Duration = 0;\r