From 3846569f800b642f665dce863724621a3682166e Mon Sep 17 00:00:00 2001 From: Mason Rowe Date: Fri, 4 Oct 2019 09:44:18 -0400 Subject: [PATCH] altered disk space calc to be more accurate --- yabs.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yabs.sh b/yabs.sh index d047e31..84a6d47 100755 --- a/yabs.sh +++ b/yabs.sh @@ -27,7 +27,7 @@ TOTAL_RAM=$(free -h | awk 'NR==2 {print $2}') echo -e "RAM : $TOTAL_RAM" TOTAL_SWAP=$(free -h | grep Swap | awk '{ print $2 }') 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" DATE=`date -Iseconds | sed -e "s/:/_/g"`