diff --git a/src/opticpu.c b/src/opticpu.c index af028c9..fe91e22 100644 --- a/src/opticpu.c +++ b/src/opticpu.c @@ -51,7 +51,7 @@ void optimize_memory() { if (used > MAX_MEM_USAGE) { // logic to adjust memory settings if needed // system("sysctl vm.swappiness=10"); - system("sysctl vm.swappiness=10"); + system("sudo sysctl vm.swappiness=10"); } } }