fix: Round down minimum disk size (#1065)

This commit is contained in:
Kroese 2025-10-15 11:37:05 +02:00 committed by GitHub
parent c2fa58ef27
commit 48e7a9fff0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -437,7 +437,7 @@ addDisk () {
local SPARE=536870912
SPACE=$(df --output=avail -B 1 "$DIR" | tail -n 1)
(( SPACE < SPARE )) && SPACE="$SPARE" || SPACE=$((SPACE-SPARE))
GB=$(( SPACE/1073741824 ))
GB=$(( SPACE/1073741825 ))
DISK_SPACE="${GB}G"
fi