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 <brandonkim@google.com>
Change-Id: Ic752b188cb06f9755fcfa6f21f530dcb979ac813
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 8dd4087..0937a9f 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 @@
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