From 163b6d07778e66dced5df6e800ebb43ef0b479f3 Mon Sep 17 00:00:00 2001 From: Luis Fernandez Date: Tue, 3 Sep 2019 13:42:05 -0500 Subject: (Fix for:) Alert when a partition's space utilization exceeds a threshold Fix for an earlier commit that is failing with a newer version of the PERL interpreter. Change-Id: I193e4712d5ac95f18bb2fe67efc11a955234b579 RTC: 212220 Reviewed-on: http://rchgit01.rchland.ibm.com/gerrit1/83204 Tested-by: Jenkins Server Reviewed-by: Christian R Geddes Tested-by: Jenkins OP Build CI Tested-by: Jenkins OP HW Tested-by: FSP CI Jenkins Reviewed-by: Nicholas E Bofferding Reviewed-by: William G Hoffa --- src/build/buildpnor/genPnorImages.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/build') diff --git a/src/build/buildpnor/genPnorImages.pl b/src/build/buildpnor/genPnorImages.pl index 142fd25f5..798c114f0 100755 --- a/src/build/buildpnor/genPnorImages.pl +++ b/src/build/buildpnor/genPnorImages.pl @@ -773,11 +773,11 @@ sub manipulateImages # If section will passed through ecc, include this in size calculation if( ($sectionHash{$layoutKey}{ecc} eq "yes") ) { - $partitionUtilHash{$eyeCatch}{logicalFileSize} = %callerHwHdrFields->{totalContainerSize} * (9/8); + $partitionUtilHash{$eyeCatch}{logicalFileSize} = $callerHwHdrFields{totalContainerSize} * (9/8); } else { - $partitionUtilHash{$eyeCatch}{logicalFileSize} = %callerHwHdrFields->{totalContainerSize}; + $partitionUtilHash{$eyeCatch}{logicalFileSize} = $callerHwHdrFields{totalContainerSize}; } $partitionUtilHash{$eyeCatch}{pctUtilized} = sprintf("%.2f", $partitionUtilHash{$eyeCatch}{logicalFileSize} / $physicalRegionSize * 100); $partitionUtilHash{$eyeCatch}{freeBytes} = $physicalRegionSize - $partitionUtilHash{$eyeCatch}{logicalFileSize}; -- cgit v1.2.1