Tasks that last less than 1 minute will be displayed with a duration of "<1m"
This commit is contained in:
Julian Matos 2023-05-09 23:16:12 -04:00
parent 84326c6495
commit b11c601103

View file

@ -10,7 +10,7 @@ pub fn format_duration(duration: &Duration) -> String {
if duration.num_minutes() > 0 {
duration_string.push_str(&format!("{:0>2}m", duration.num_minutes() % 60));
} else {
duration_string.push_str(&format!("{}s", duration.num_seconds() % 60));
duration_string.push_str(&format!("<1m"));
}
duration_string