Update dsmon.sh
This commit is contained in:
4
dsmon.sh
4
dsmon.sh
@@ -176,7 +176,7 @@ 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=12; spcB=''
|
c=0; cw=10; 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
|
||||||
|
|
||||||
@@ -184,7 +184,7 @@ CHECK(){
|
|||||||
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]})${idsCL[Default]}"
|
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]}"
|
||||||
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