Skip to content

Commit

Permalink
adjusted min sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
AlvinSchiller committed Jan 4, 2024
1 parent 44653ee commit c46755d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/webapp/run_rebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ change_swap() {
#RECURSION_BREAKER=false
calc_nodemem() {
# keep a buffer for the kernel etc.
local mem_buffer=512
local mem_buffer=256
# Need to check free space and limit Node memory usage
# for PIs with little memory
MemTotal=$(grep MemTotal /proc/meminfo | awk '{print $2}')
Expand All @@ -71,7 +71,7 @@ calc_nodemem() {

if [[ -z $NODEMEM ]]; then
# mininum memory used for node
local mem_min=256
local mem_min=512
if [[ $FreeToUse -gt $mem_min ]]; then
NODEMEM=$FreeToUse
else
Expand Down

0 comments on commit c46755d

Please sign in to comment.