Update cattools.sh

This commit is contained in:
喵二
2024-07-29 00:34:32 +08:00
committed by GitHub
parent b78a463de5
commit e06da2dd60

View File

@@ -901,6 +901,7 @@ sysupgrade() {
echo "" echo ""
disk_size=$(fdisk -l /dev/sda | grep "Disk /dev/sda:" | awk '{print $3}')
tolerance=$(echo "200/1024/1024" | bc -l) tolerance=$(echo "200/1024/1024" | bc -l)
allowed_size=800.28 allowed_size=800.28
min_size=$(echo "$allowed_size - $tolerance" | bc -l) min_size=$(echo "$allowed_size - $tolerance" | bc -l)