update zram bool

This commit is contained in:
Aiden McClelland
2023-06-10 16:21:23 +00:00
committed by Matt Hill
parent df88a55784
commit f2071d8b7e

View File

@@ -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")