From 4afe6657eb330531b6a2dd90b89a07a8ea0cf14f Mon Sep 17 00:00:00 2001 From: John Welsh Date: Sat, 16 Jan 2021 17:37:30 -0800 Subject: [PATCH] fixed memory checking for setting jupyter memory constraints --- docker/configure.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/configure.sh b/docker/configure.sh index f8e2a79a..52a28e66 100755 --- a/docker/configure.sh +++ b/docker/configure.sh @@ -23,7 +23,7 @@ sudo systemctl enable docker # check system memory SYSTEM_RAM_KILOBYTES=$(awk '/^MemTotal:/{print $2}' /proc/meminfo) -if [ $SYSTEM_RAM_KILOBYTES -gt 3000000 ] +if [ $SYSTEM_RAM_KILOBYTES -lt 3000000 ] then export JETBOT_JUPYTER_MEMORY=500m export JETBOT_JUPYTER_MEMORY_SWAP=3G