spotlights-macbook-air: Initialize muvm

This commit is contained in:
Spotlight 2025-02-27 23:44:20 -06:00
parent 05a7847913
commit b428477394
Signed by: spotlight
GPG key ID: 874AA355B3209BDC
6 changed files with 248 additions and 2 deletions

View file

@ -0,0 +1,13 @@
diff --git a/crates/muvm/src/monitor.rs b/crates/muvm/src/monitor.rs
index 836acd5..a7cee1c 100644
--- a/crates/muvm/src/monitor.rs
+++ b/crates/muvm/src/monitor.rs
@@ -49,7 +49,7 @@ fn set_guest_pressure(pressure: GuestPressure) -> Result<()> {
let wsf: u32 = pressure.into();
debug!("setting watermark_scale_factor to {wsf}");
- let command = PathBuf::from("/sbin/sysctl");
+ let command = PathBuf::from("sysctl");
let command_args = vec![format!("vm.watermark_scale_factor={}", wsf)];
let env = HashMap::new();
request_launch(command, command_args, env, 0, false, true)