Update dsmon.sh

This commit is contained in:
2025-06-14 23:46:59 -05:00
parent ad5a4313b0
commit 4a5d936eec

View File

@@ -228,7 +228,7 @@ RUN_CHECK(){
MSG=" ${host_name[$hostid]}"
MSG2="[ ${host_name_full[$hostid]} ]"
MSG3="( ${host_ip[$hostid]} ) "
MSG3="[ ${host_ip[$hostid]} ] "
c=0; cw=85; spcA=''; spcB=''; spc=`expr ${cw} - ${#MSG} - ${#MSG2} - ${#MSG3}`; spc1=$((spc / 2)); spc2=$((spc - spc1))
until [ $c = ${spc1} ]; do spcA="${spcA} "; c=`expr $c + 1`; done; c=0
until [ $c = ${spc2} ]; do spcB="${spcB} "; c=`expr $c + 1`; done