From 20b6390d61a09d24700a4bd2535a3a92ed68bc32 Mon Sep 17 00:00:00 2001 From: Adam Sasine Date: Fri, 10 Jan 2025 11:06:23 -0500 Subject: [PATCH] Fixed formatting error --- examples/linux-sync.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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() { } } } -