diff --git a/dsmon.sh b/dsmon.sh index 478712e..aae628c 100755 --- a/dsmon.sh +++ b/dsmon.sh @@ -129,9 +129,11 @@ CHECK(){ fs_status='' fs_status_color='Green' fi - - - echo -e "${idsCL[$fs_status_color]} ${dname} - ${dfree}GB Free - ${dfreeper}% -- (total=${dtot}GB) ${idsCL[Default]}" + + c=0; cw=30; spc='' + spc1=`expr ${cw} - ${#dname}` + until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done + echo -e "${idsCL[$fs_status_color]} ${dname}${spc}: ${dfree}GB Free - ${dfreeper}%${idsCL[Default]}" done