Update dsmon.sh

This commit is contained in:
2025-06-14 23:42:35 -05:00
parent efa71b4f1a
commit e1bf75b550

View File

@@ -229,8 +229,9 @@ RUN_CHECK(){
MSG=" ${host_name[$hostid]}"
MSG2="( ${host_name_full[$hostid]} )"
MSG3="[ ${host_ip[$hostid]} ] "
c=0; cw=85; spcA=''; spcB=''; spc1=`expr ${cw} - ${#MSG} - ${#MSG2} - ${#MSG3}`; spc1=$((spc1/2)); spc2=$((85-spc1))
until [ $c = ${spc1} ]; do spcA="${spcA} "; c=`expr $c + 1`; done; until [ $c = ${spc2} ]; do spcB="${spcB} "; c=`expr $c + 1`; done
c=0; cw=85; spcA=''; spcB=''; spc1=`expr ${cw} - ${#MSG} - ${#MSG2} - ${#MSG3}`; spc1=$((spc1 / 2)); spc2=$((85 - spc1))
until [ $c = ${spc1} ]; do spcA="${spcA} "; c=`expr $c + 1`; done
until [ $c = ${spc2} ]; do spcB="${spcB} "; c=`expr $c + 1`; done
DIVIDER 1 . 85
echo -e "${idsST[Bold]}${idsBG[Blue]}${idsCL[White]}${MSG}${spcA}${MSG2}${spcB}${MSG3}${idsST[Reset]}"
DIVIDER . . 85