Update nodemgmt-scripts.sh

This commit is contained in:
2019-12-12 23:45:29 -06:00
parent 58d9a6184d
commit a819e76eef

View File

@@ -384,8 +384,8 @@ STATUS(){
partitions3=(${partitions2})
for partition in "${partitions3[@]}"; do
if [ "${partition}" != "udev" ]; then
freespace=`${NCMD} df -hPBM ${partition} | awk '{print $5}' |tail -1|sed 's/%$//g'`
c=0; cw=40; spc=''
freespace=`${NCMD} df -hPBM ${partition} | awk '{print $4}' |tail -1|sed 's/%$//g'`
c=0; cw=50; spc=''
spc1=${cw}-${#partition}
until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done
echo -en " ${partition}$spc: "