diff --git a/examples/linux-sync.rs b/examples/linux-sync.rs index fb4541a..6269f88 100644 --- a/examples/linux-sync.rs +++ b/examples/linux-sync.rs @@ -33,7 +33,7 @@ struct Args { impl Args { fn delay_ms(&self) -> u32 { - (1000.0 / self.frequency) as u32 + (1000.0 / self.frequency).floor() as u32 } } @@ -69,4 +69,3 @@ fn main() { } } } -