From ea29078ac2eb5a0043e280a8ce820504cd1ff6cb Mon Sep 17 00:00:00 2001 From: Luc Mcgrady Date: Mon, 4 Aug 2025 19:39:37 +0100 Subject: [PATCH] fix --- rslib/src/stats/today.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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