Update dsmon.sh

This commit is contained in:
2023-01-02 15:54:41 -06:00
parent 8bb8ee61cd
commit 364f949489

View File

@@ -171,7 +171,7 @@ CHECK(){
# echo
if [ "${1}" != "report" ]; then
c=0; cw=30; spcA=''
c=0; cw=20; spcA=''
spc1=`expr ${cw} - 5`
until [ $c = ${spc1} ]; do spcA="${spcA} "; c=`expr $c + 1`; done
c=0; cw=10; spcB=''
@@ -196,7 +196,7 @@ CHECK(){
CRITICAL_LEVEL=$(printf "%0.2f" $(jq -n $WARNING_LEVEL-$WARNING_LEVEL/2))
if [ "${1}" != "report" ]; then
c=0; cw=30; spcA=''
c=0; cw=20; spcA=''
spc1=`expr ${cw} - ${#DRIVEINFO_SHORTNAME[$DRIVE]}`
until [ $c = ${spc1} ]; do spcA="${spcA} "; c=`expr $c + 1`; done
c=0; cw=10; spcB=''