diff --git a/src/render/mod.rs b/src/render/mod.rs index e8b6729..6accb37 100644 --- a/src/render/mod.rs +++ b/src/render/mod.rs @@ -32,7 +32,7 @@ const TRANSITION_LEN: Time = Time { seconds: 0, micros: 200_000 }; -const FF_MULTIPLIER: usize = 3; +const FF_MULTIPLIER: usize = 8; fn cmd() -> Command { let mut cmd = Command::new("busybox"); diff --git a/src/time.rs b/src/time.rs index c77443e..8884516 100644 --- a/src/time.rs +++ b/src/time.rs @@ -122,7 +122,11 @@ impl FromStr for Time { impl Display for Time { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { - f.write_str(&format_time(*self)) + write!(f, "{}", self.seconds)?; + if self.micros != 0 { + write!(f, ".{}", self.micros)?; + } + Ok(()) } }