Skip to content

Commit

Permalink
math syntax fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Botspot committed Nov 3, 2024
1 parent 25bf3c0 commit a0f1626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/More RAM/install
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a0f1626

Please sign in to comment.