From f2071d8b7e94e6a4e98b767c8ca62c81801aba34 Mon Sep 17 00:00:00 2001 From: Aiden McClelland <3732071+dr-bonez@users.noreply.github.com> Date: Sat, 10 Jun 2023 16:21:23 +0000 Subject: [PATCH] update zram bool --- backend/src/system.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/system.rs b/backend/src/system.rs index 4f9499e63..9add66892 100644 --- a/backend/src/system.rs +++ b/backend/src/system.rs @@ -40,6 +40,7 @@ pub async fn zram(#[context] ctx: RpcContext, #[arg] enable: bool) -> Result<(), if enable == *zram { return Ok(()); } + *zram = enable; if enable { let mem_info = get_mem_info().await?; Command::new("modprobe")