diff --git a/defaults.inc b/defaults.inc index a4f8becf..81504bc5 100755 --- a/defaults.inc +++ b/defaults.inc @@ -93,7 +93,7 @@ DISP_HEADER(){ lastrun_date=$(stat -c %y ${lastrun}) IFS=' '; lastrun_date=(${lastrun_date}); unset IFS c=0; cw=18; spc='' - spc1=${cw}-${#NM_SERVICES[${srvc}]} + spc1=${cw}-${#lastrun_item} until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done echo -e " ${lastrun_item~}${spc}: ${lastrun_date[0]}" done