Update dsmon.sh
This commit is contained in:
4
dsmon.sh
4
dsmon.sh
@@ -227,8 +227,8 @@ RUN_CHECK(){
|
|||||||
|
|
||||||
|
|
||||||
MSG=" ${host_name[$hostid]}"
|
MSG=" ${host_name[$hostid]}"
|
||||||
MSG2="( ${host_name_full[$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))
|
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 = ${spc1} ]; do spcA="${spcA} "; c=`expr $c + 1`; done; c=0
|
||||||
until [ $c = ${spc2} ]; do spcB="${spcB} "; c=`expr $c + 1`; done
|
until [ $c = ${spc2} ]; do spcB="${spcB} "; c=`expr $c + 1`; done
|
||||||
|
|||||||
Reference in New Issue
Block a user