We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53fc2ea commit 6d69f57Copy full SHA for 6d69f57
src/server/routes/ui/experiments.rs
@@ -138,8 +138,10 @@ fn humanize(duration: Duration) -> String {
138
format!("{duration:?}")
139
} else if duration.as_secs() < 60 * 60 {
140
format!("{} minutes", duration.as_secs() / 60)
141
- } else {
+ } else if duration.as_secs() < 60 * 60 * 60 {
142
format!("{:.1} hours", duration.as_secs_f64() / 60.0 / 60.0)
143
+ } else {
144
+ format!("{:.1} days", duration.as_secs_f64() / 60.0 / 60.0 / 24.0)
145
}
146
147
0 commit comments