From 66668e5457a71e7df36f631ca9acc9f4fc338cb1 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Fri, 27 Oct 2023 02:26:12 +0200 Subject: [PATCH] make safer --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 00aca8f..ba7130c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -91,9 +91,9 @@ fn kill_all() -> io::Result<()> { unsafe { sync(); } - thread::sleep(Duration::from_millis(50)); + thread::sleep(Duration::from_millis(100)); fs::write("/proc/sysrq-trigger", "u")?; - thread::sleep(Duration::from_millis(50)); + thread::sleep(Duration::from_millis(200)); fs::write("/proc/sysrq-trigger", "o")?; Ok(())