mirror of
https://github.com/masonr/yet-another-bench-script.git
synced 2025-11-08 16:30:06 +05:30
fix: add "overlay" type into 'TOTAL_DISK_RAW' to calculate space within docker environment
This commit is contained in:
parent
d802ab6874
commit
7dd8050c03
1 changed files with 1 additions and 1 deletions
2
yabs.sh
2
yabs.sh
|
|
@ -316,7 +316,7 @@ else
|
||||||
fi
|
fi
|
||||||
# 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)
|
||||||
if check_command "df"; then
|
if check_command "df"; then
|
||||||
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 overlay --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"
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue