From 5fb4710d33f2ab72e4248785361adff2433d0b9a Mon Sep 17 00:00:00 2001 From: Brandon Kim Date: Tue, 20 Apr 2021 14:17:49 -0700 Subject: meta-quanta: gbs: Fix WCTemp in read-margin-temp-wait.sh The backup WCTemp was being set to 72000 * 1000, clean up the logic. Signed-off-by: Brandon Kim Change-Id: Ic752b188cb06f9755fcfa6f21f530dcb979ac813 --- .../recipes-quanta/fans/read-margin-temp/read-margin-temp-wait.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'meta-quanta/meta-gbs/recipes-quanta/fans/read-margin-temp') diff --git a/meta-quanta/meta-gbs/recipes-quanta/fans/read-margin-temp/read-margin-temp-wait.sh b/meta-quanta/meta-gbs/recipes-quanta/fans/read-margin-temp/read-margin-temp-wait.sh index 8dd408799..0937a9fb8 100644 --- a/meta-quanta/meta-gbs/recipes-quanta/fans/read-margin-temp/read-margin-temp-wait.sh +++ b/meta-quanta/meta-gbs/recipes-quanta/fans/read-margin-temp/read-margin-temp-wait.sh @@ -43,12 +43,12 @@ for ((i = 0; i < 16; i++)); do sleep 1 done - if [[ "${actualWCTemp}" -eq 0 ]]; then - echo "${nvmePath}${i} WCTemp was read to be 0, setting to default WCTemp: ${wcTemp}" - actualWCTemp="${wcTemp}" + if [[ "${actualWCTemp}" -ne 0 ]]; then + wcTemp="$((actualWCTemp * 1000))" + else + echo "${nvmePath}${i} WCTemp was read to be 0, using default WCTemp: ${wcTemp}" fi - wcTemp="$((actualWCTemp * 1000))" if [[ -z "$nvmeList" ]]; then nvmeList="\"nvme"${i}"\"" else -- cgit v1.2.3