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

fix: Lower spare disk space (#903)

parent d164e913
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -477,7 +477,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 ))