diff --git a/dsmon.sh b/dsmon.sh index 366ecfa..a7758db 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -201,7 +201,7 @@ CHECK(){ c=0; cw=8; spcD='' spc4=`expr ${cw} - ${#DRIVEINFO_TOT[$DRIVE]}` - until [ $c = ${spc3} ]; do spcC="${spcC} "; c=`expr $c + 1`; done + until [ $c = ${spc4} ]; do spcD="${spcD} "; c=`expr $c + 1`; done echo -e "${idsCL[Cyan]} ${DRIVE}${spcA}:${idsCL[$fs_status_color]} ${DRIVEINFO_FREE[$DRIVE]} GB Free${spcB}${DRIVEINFO_FREEPER[$DRIVE]}%${spcC}(${DRIVEINFO_TOT[$DRIVE]} GB Total)${spcD}(${WARNING_LEVEL}/${CRITICAL_LEVEL})${idsCL[Default]}" done