diff --git a/dsmon.sh b/dsmon.sh index 1ad1026..4996dc0 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -190,7 +190,7 @@ RUN_CHECK(){ hostid=${host_ids[$hostname]} MSG=" ${host_name[$hostid]} - (${host_ip[$hostid]})" - c=0; cw=85; spc=''; spc1=`expr ${cw} - ${#MSG}`; until [ $c = ${spc1} ]; do spc="${spcA} "; c=`expr $c + 1`; done + c=0; cw=85; spc=''; spc1=`expr ${cw} - ${#MSG}`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done echo -e "${idsST[Bold]}"; DIVIDER false lightCyan ${cw} echo -e "${idsBG[Blue]}${idsCL[White]}${MSG}${spc}${idsST[Reset]}" DIVIDER false lightCyan ${cw}