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]}"