summaryrefslogtreecommitdiffstats
path: root/ShellPkg
diff options
context:
space:
mode:
authorStar Zeng <star.zeng@intel.com>2017-08-07 15:28:46 +0800
committerStar Zeng <star.zeng@intel.com>2017-08-14 16:55:52 +0800
commit3cf737c74b0f2fa2d2c6a861343bde6fa2473a3f (patch)
treef04b0a2e002f671c2489d7bc6182918ed143a4d8 /ShellPkg
parentce10f482f786283b160146bb7ba2d9770479c10c (diff)
downloadedk2-3cf737c74b0f2fa2d2c6a861343bde6fa2473a3f.tar.gz
edk2-3cf737c74b0f2fa2d2c6a861343bde6fa2473a3f.tar.bz2
edk2-3cf737c74b0f2fa2d2c6a861343bde6fa2473a3f.zip
ShellPkg UefiDpLib: 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 <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>
Diffstat (limited to 'ShellPkg')
-rw-r--r--ShellPkg/Library/UefiDpLib/Dp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ShellPkg/Library/UefiDpLib/Dp.c b/ShellPkg/Library/UefiDpLib/Dp.c
index 35ead751be..94fa61c710 100644
--- a/ShellPkg/Library/UefiDpLib/Dp.c
+++ b/ShellPkg/Library/UefiDpLib/Dp.c
@@ -250,7 +250,7 @@ ShellCommandRunDp (
if (CustomCumulativeData == NULL) {
return SHELL_OUT_OF_RESOURCES;
}
- CustomCumulativeData->MinDur = 0;
+ CustomCumulativeData->MinDur = PERF_MAXDUR;
CustomCumulativeData->MaxDur = 0;
CustomCumulativeData->Count = 0;
CustomCumulativeData->Duration = 0;