mirror of
https://github.com/masonr/yet-another-bench-script.git
synced 2025-11-09 16:40:07 +05:30
yabs.sh
This commit is contained in:
parent
b7c35fefab
commit
be84817034
1 changed files with 1 additions and 1 deletions
2
yabs.sh
2
yabs.sh
|
|
@ -243,7 +243,7 @@ TOTAL_SWAP_RAW=$(free | grep Swap | awk '{ print $2 }')
|
||||||
TOTAL_SWAP=$(format_size $TOTAL_SWAP_RAW)
|
TOTAL_SWAP=$(format_size $TOTAL_SWAP_RAW)
|
||||||
echo -e "Swap : $TOTAL_SWAP"
|
echo -e "Swap : $TOTAL_SWAP"
|
||||||
# total disk size is calculated by adding all partitions of the types listed below (after the -t flags)
|
# total disk size is calculated by adding all partitions of the types listed below (after the -t flags)
|
||||||
TOTAL_DISK_RAW=$(df -t simfs -t ext2 -t ext3 -t ext4 -t btrfs -t xfs -t vfat -t ntfs -t swap --total 2>/dev/null | grep total | awk '{ print $2 }')
|
TOTAL_DISK_RAW=$(df -t simfs -t ext2 -t ext3 -t ext4 -t btrfs -t xfs -t vfat -t ntfs -t swap -t zfs --total 2>/dev/null | grep total | awk '{ print $2 }')
|
||||||
TOTAL_DISK=$(format_size $TOTAL_DISK_RAW)
|
TOTAL_DISK=$(format_size $TOTAL_DISK_RAW)
|
||||||
echo -e "Disk : $TOTAL_DISK"
|
echo -e "Disk : $TOTAL_DISK"
|
||||||
DISTRO=$(grep 'PRETTY_NAME' /etc/os-release | cut -d '"' -f 2 )
|
DISTRO=$(grep 'PRETTY_NAME' /etc/os-release | cut -d '"' -f 2 )
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue