From 953e6328e008bc7cb6568488446653fc45d99ed3 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Thu, 12 Dec 2019 23:50:20 -0600 Subject: [PATCH] Update nodemgmt-scripts.sh --- nodemgmt-scripts.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nodemgmt-scripts.sh b/nodemgmt-scripts.sh index f57720bb..9ecfc2d3 100755 --- a/nodemgmt-scripts.sh +++ b/nodemgmt-scripts.sh @@ -384,12 +384,12 @@ STATUS(){ partitions3=(${partitions2}) for partition in "${partitions3[@]}"; do if [ "${partition}" != "udev" ]; then - freespace=`${NCMD} df -hPBM ${partition} | awk '{print $4}' |tail -1|sed 's/%$//g'` + freespace=`${NCMD} df -hPBM ${partition} | awk '{print $4}' |tail -1|sed 's/M$//g'` c=0; cw=50; spc='' spc1=${cw}-${#partition} until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done echo -en " ${partition}$spc: " - echo -e "${idsCL[Green]}${freespace}${idsCL[Default]}" + echo -e "${idsCL[Green]}${freespace} MB${idsCL[Default]}" fi done