diff --git a/rslib/src/stats/today.rs b/rslib/src/stats/today.rs index d593e35ea..b1e6d4848 100644 --- a/rslib/src/stats/today.rs +++ b/rslib/src/stats/today.rs @@ -8,7 +8,7 @@ use crate::scheduler::timespan::Timespan; use crate::scheduler::timespan::TimespanUnit; pub fn studied_today(cards: u32, secs: f32, tr: &I18n) -> String { - let span = Timespan::from_secs(secs).to_unit(if secs < 60 { + let span = Timespan::from_secs(secs).to_unit(if secs < 60. { TimespanUnit::Seconds } else { TimespanUnit::Minutes