From 1d22ca9248422ac13b28a438f4e358ac4619db05 Mon Sep 17 00:00:00 2001 From: Jack Rubacha Date: Mon, 16 Dec 2024 18:56:24 -0500 Subject: [PATCH] stop accidental turbo mode (#83) --- src/simulatable_message.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/simulatable_message.rs b/src/simulatable_message.rs index ba83a49..794362e 100644 --- a/src/simulatable_message.rs +++ b/src/simulatable_message.rs @@ -206,6 +206,7 @@ impl SimEnum { /// Base logic for enum sim impl SimShared for SimEnum { fn update(&mut self) { + self.component.last_update = Instant::now(); let mut rng = rand::thread_rng(); for i in 0..self.component.value.len() { let prob = rng.gen_range(0f32..1f32);