From 88317e8281f34554c9e15840696344166dd5bd9e Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sat, 14 Jun 2025 23:45:39 -0500 Subject: [PATCH] Update dsmon.sh --- dsmon.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/dsmon.sh b/dsmon.sh index 8244908..6ddb890 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -230,8 +230,7 @@ RUN_CHECK(){ MSG2="( ${host_name_full[$hostid]} )" MSG3="[ ${host_ip[$hostid]} ] " c=0; cw=85; spcA=''; spcB=''; spc=`expr ${cw} - ${#MSG} - ${#MSG2} - ${#MSG3}`; spc1=$((spc / 2)); spc2=$((spc - spc1)) - echo "HERE: $spc1 - $spc2" - until [ $c = ${spc1} ]; do spcA="${spcA} "; c=`expr $c + 1`; done + until [ $c = ${spc1} ]; do spcA="${spcA} "; c=`expr $c + 1`; done; c=0 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]}"