Skip to content

Commit

Permalink
remove obsolete code
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Jan 4, 2024
1 parent c46755d commit 4951906
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/webapp/run_rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ change_swap() {
sudo dphys-swapfile swapon || return 1
}

#RECURSION_BREAKER=false
calc_nodemem() {
# keep a buffer for the kernel etc.
local mem_buffer=256
Expand Down Expand Up @@ -75,10 +74,6 @@ calc_nodemem() {
if [[ $FreeToUse -gt $mem_min ]]; then
NODEMEM=$FreeToUse
else
#if [ "$RECURSION_BREAKER" == true ]; then
# return 1;
#fi

local new_swap_size=$((SwapTotal + mem_min))
echo "WARN: Not enough memory left on system for node (min. $mem_min MB)."
echo "Trying to adjust swap size ..."
Expand All @@ -99,7 +94,6 @@ calc_nodemem() {
fi
fi

#RECURSION_BREAKER=true
calc_nodemem || return 1
fi
fi
Expand Down

0 comments on commit 4951906

Please sign in to comment.