From e62af0d71594fd9ae6814dabc509594f0d66fe01 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 17 Dec 2023 11:46:19 -0600 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index e03f462a..45c89b36 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -663,7 +663,8 @@ SERVERROOM_TEMP_DIFFERENCE(){ if [[ "${tempdiff}" = *"~"* ]]; then dt="${tempdiff%~*}" tempdiff=${tempdiff#*~} - [ $(bc -l <<< "${tempdiff} < 1") -eq 1 ] && [ "${tempdiff}" != "0" ] && tempdiff="0${tempdiff}" || ([ "${tempdiff}" = "0" ] && tempdiff="0.0") + [ $(bc -l <<< "${tempdiff} < 1") -eq 1 ] && [ "${tempdiff}" != "0" ] && tempdiff="0${tempdiff}" + [ "${tempdiff}" = "0" ] && tempdiff="0.0" else dt=" " fi