fix: Lower spare disk space (#1061)

Reduced spare disk space threshold from 2GB to 512MB.
This commit is contained in:
Kroese 2025-10-14 03:33:25 +02:00 committed by GitHub
parent 6281205912
commit c70e12f0a2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -434,7 +434,7 @@ addDisk () {
if [[ "${DISK_SPACE,,}" == "max" ]]; then
local SPARE=2147483648
local SPARE=536870912
SPACE=$(df --output=avail -B 1 "$DIR" | tail -n 1)
(( SPACE < SPARE )) && SPACE="$SPARE" || SPACE=$((SPACE-SPARE))
GB=$(( SPACE/1073741824 ))