mirror of
https://github.com/masonr/yet-another-bench-script.git
synced 2025-06-28 01:06:54 +00:00
altered disk space calc to be more accurate
This commit is contained in:
parent
8932e25721
commit
3846569f80
2
yabs.sh
2
yabs.sh
@ -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"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user