diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index 4b256029..6a93d4fd 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -763,10 +763,10 @@ DOWNLIST(){ fi [ ${is} -lt 10 ] && ignsel=" ${is}) " || ignsel="${is}) " - [ -f ${NM_TMPFOLDER}/${ditem}.disable ] && dstatus="off" || dstatus="${idsCL[Yellow]}on" + [ -f ${NM_TMPFOLDER}/${ditem}.disable ] && dstatus="OFF" || dstatus="${idsCL[Yellow]}ON" time=$(SHOW_TIME ${toterrtime}) c=0; spc3='' - until [ $c = `expr 27 - ${#time}` ]; do spc3="${spc3} "; c=`expr $c + 1`; done + until [ $c = `expr 26 - ${#time}` ]; do spc3="${spc3} "; c=`expr $c + 1`; done echo -e "\033[K${idsCL[LightRed]}${idsST[Bold]}${ignsel}${idsST[Reset]}${idsCL[LightRed]}${itemname}${spc}${host}${spc2}${time}${spc3}${dstatus}${idsCL[Default]}" fi