Unverified Commit c70e12f0 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Lower spare disk space (#1061)

Reduced spare disk space threshold from 2GB to 512MB.
parent 62812059
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 ))