Update dsmon.sh
This commit is contained in:
6
dsmon.sh
6
dsmon.sh
@@ -179,8 +179,12 @@ CHECK(){
|
|||||||
c=0; cw=12; spcB=''
|
c=0; cw=12; spcB=''
|
||||||
spc2=`expr ${cw} - ${#DRIVEINFO_FREE[$DRIVE]}`
|
spc2=`expr ${cw} - ${#DRIVEINFO_FREE[$DRIVE]}`
|
||||||
until [ $c = ${spc2} ]; do spcB="${spcB} "; c=`expr $c + 1`; done
|
until [ $c = ${spc2} ]; do spcB="${spcB} "; c=`expr $c + 1`; done
|
||||||
|
|
||||||
|
c=0; cw=8; spcC=''
|
||||||
|
spc3=`expr ${cw} - ${#DRIVEINFO_FREEPER[$DRIVE]}`
|
||||||
|
until [ $c = ${spc3} ]; do spcC="${spcC} "; c=`expr $c + 1`; done
|
||||||
|
|
||||||
echo -e "${idsCL[$fs_status_color]} ${DRIVE}${spcA}: ${DRIVEINFO_FREE[$DRIVE]} GB Free${spcB}${DRIVEINFO_FREEPER[$DRIVE]}% (${DRIVEINFO_TOT[$DRIVE]})${idsCL[Default]}"
|
echo -e "${idsCL[$fs_status_color]} ${DRIVE}${spcA}: ${DRIVEINFO_FREE[$DRIVE]} GB Free${spcB}${DRIVEINFO_FREEPER[$DRIVE]}%${spcC}(${DRIVEINFO_TOT[$DRIVE]})${idsCL[Default]}"
|
||||||
done
|
done
|
||||||
|
|
||||||
unset DRIVEINFO_TOT DRIVEINFO_FREE DRIVEINFO_FREEPER DRIVES DRIVEINFO
|
unset DRIVEINFO_TOT DRIVEINFO_FREE DRIVEINFO_FREEPER DRIVES DRIVEINFO
|
||||||
|
|||||||
Reference in New Issue
Block a user