]> git.proxmox.com Git - mirror_edk2.git/commitdiff
ShellPkg UefiDpLib: Init CustomCumulativeData.MinDur
authorStar Zeng <star.zeng@intel.com>
Mon, 7 Aug 2017 07:28:46 +0000 (15:28 +0800)
committerStar Zeng <star.zeng@intel.com>
Mon, 14 Aug 2017 08:55:52 +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: Ruiyu Ni <ruiyu.ni@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>
ShellPkg/Library/UefiDpLib/Dp.c

index 35ead751becced8ed7ea25f49d63823589574020..94fa61c7108e55e421e9cd98fdffa645379b4fa6 100644 (file)
@@ -250,7 +250,7 @@ ShellCommandRunDp (
     if (CustomCumulativeData == NULL) {\r
       return SHELL_OUT_OF_RESOURCES;\r
     }\r
-    CustomCumulativeData->MinDur = 0;\r
+    CustomCumulativeData->MinDur = PERF_MAXDUR;\r
     CustomCumulativeData->MaxDur = 0;\r
     CustomCumulativeData->Count  = 0;\r
     CustomCumulativeData->Duration = 0;\r