Update dsmon.sh
This commit is contained in:
6
dsmon.sh
6
dsmon.sh
@@ -176,15 +176,15 @@ CHECK(){
|
|||||||
spc1=`expr ${cw} - ${#DRIVE}`
|
spc1=`expr ${cw} - ${#DRIVE}`
|
||||||
until [ $c = ${spc1} ]; do spcA="${spcA} "; c=`expr $c + 1`; done
|
until [ $c = ${spc1} ]; do spcA="${spcA} "; c=`expr $c + 1`; done
|
||||||
|
|
||||||
c=0; cw=10; spcB=''
|
c=0; cw=8; 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=''
|
c=0; cw=6; spcC=''
|
||||||
spc3=`expr ${cw} - ${#DRIVEINFO_FREEPER[$DRIVE]}`
|
spc3=`expr ${cw} - ${#DRIVEINFO_FREEPER[$DRIVE]}`
|
||||||
until [ $c = ${spc3} ]; do spcC="${spcC} "; c=`expr $c + 1`; done
|
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]}%${spcC}(${DRIVEINFO_TOT[$DRIVE]} GB Total)${idsCL[Default]}"
|
echo -e "${idsCL[Cyan]} ${DRIVE}${spcA}:${idsCL[$fs_status_color]} ${DRIVEINFO_FREE[$DRIVE]} GB Free${spcB}${DRIVEINFO_FREEPER[$DRIVE]}%${spcC}(${DRIVEINFO_TOT[$DRIVE]} GB Total)${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