summaryrefslogtreecommitdiff
path: root/meta-quanta/meta-gbs/recipes-quanta
diff options
context:
space:
mode:
authorBrandon Kim <brandonkim@google.com>2021-04-21 00:17:49 +0300
committerBrandon Kim <brandonkim@google.com>2021-04-21 03:18:52 +0300
commit5fb4710d33f2ab72e4248785361adff2433d0b9a (patch)
tree60bea335bf13fa805e9fb8223217e3fdf8b48f87 /meta-quanta/meta-gbs/recipes-quanta
parente2a178b333ebdc8ce2f7af106ad407ec48e5623a (diff)
downloadopenbmc-5fb4710d33f2ab72e4248785361adff2433d0b9a.tar.xz
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
Diffstat (limited to 'meta-quanta/meta-gbs/recipes-quanta')
-rw-r--r--meta-quanta/meta-gbs/recipes-quanta/fans/read-margin-temp/read-margin-temp-wait.sh8
1 files changed, 4 insertions, 4 deletions
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