From ff875659925661963f1bc5ebb394b9a7c6578ca4 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Fri, 18 Mar 2022 23:24:02 -0500 Subject: [PATCH] Update install-dsmon.sh --- install-dsmon.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/install-dsmon.sh b/install-dsmon.sh index 42610bd..32d5517 100755 --- a/install-dsmon.sh +++ b/install-dsmon.sh @@ -55,7 +55,7 @@ for ((i = 0 ; i <= $((${NUMDRIVES}-1)) ; i++)); do else #echo "${ia};${ib};${ic}" - THRESHOLDSPACE=$(bc <<< "scale=2; $TOTALSPACE*.8") + THRESHOLDSPACE=$(bc <<< "scale=2; ${ib}*.8") echo -e "${idsCL[LightCyan]}(${ia}) total size: ${idsCL[LightGreen]}${ib}GB${idsCL[Default]}" echo -e "${idsCL[LightCyan]}Using the default threshold of 80% would alert at: ${idsCL[LightGreen]}${THRESHOLDSPACE}GB${idsCL[Default]}"