altered disk space calc to be more accurate

This commit is contained in:
Mason Rowe 2019-10-04 09:44:18 -04:00
parent 8932e25721
commit 3846569f80

View File

@ -27,7 +27,7 @@ TOTAL_RAM=$(free -h | awk 'NR==2 {print $2}')
echo -e "RAM : $TOTAL_RAM" echo -e "RAM : $TOTAL_RAM"
TOTAL_SWAP=$(free -h | grep Swap | awk '{ print $2 }') TOTAL_SWAP=$(free -h | grep Swap | awk '{ print $2 }')
echo -e "Swap : $TOTAL_SWAP" echo -e "Swap : $TOTAL_SWAP"
TOTAL_DISK=$(df -h --total | grep total | awk '{ print $2 }') TOTAL_DISK=$(df -t simfs -t ext2 -t ext3 -t ext4 -t btrfs -t xfs -t vfat -t ntfs -t swap --total -h | grep total | awk '{ print $2 }')
echo -e "Disk : $TOTAL_DISK" echo -e "Disk : $TOTAL_DISK"
DATE=`date -Iseconds | sed -e "s/:/_/g"` DATE=`date -Iseconds | sed -e "s/:/_/g"`