From a0f16268d44654d403c04e499c93119bc3c59e77 Mon Sep 17 00:00:00 2001 From: Botspot <54716352+Botspot@users.noreply.github.com> Date: Sun, 3 Nov 2024 15:00:23 -0600 Subject: [PATCH] math syntax fix --- apps/More RAM/install | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/More RAM/install b/apps/More RAM/install index 559d10cec6..c03feb5bfa 100755 --- a/apps/More RAM/install +++ b/apps/More RAM/install @@ -235,7 +235,7 @@ status "Changing kernel parameters for better performance:" #change kernel values as recommended by: https://haydenjames.io/linux-performance-almost-always-add-swap-part2-zram #Use aggressive cache clearing if available RAM is less than 2GB (will trigger on 2GB and below systems) -if [ "$(awk '/MemTotal/ {print $2}' /proc/meminfo)" -lt $(2*1024*1024) ];then +if [ "$(awk '/MemTotal/ {print $2}' /proc/meminfo)" -lt $((2*1024*1024)) ];then echo 'vm.swappiness=100 vm.vfs_cache_pressure=500 vm.dirty_background_ratio=1