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.
2 parents a6b847b + 6d69f57 commit e2229eaCopy full SHA for e2229ea
src/server/routes/ui/experiments.rs
@@ -139,8 +139,10 @@ fn humanize(duration: Duration) -> String {
139
format!("{duration:?}")
140
} else if duration.as_secs() < 60 * 60 {
141
format!("{} minutes", duration.as_secs() / 60)
142
- } else {
+ } else if duration.as_secs() < 60 * 60 * 60 {
143
format!("{:.1} hours", duration.as_secs_f64() / 60.0 / 60.0)
144
+ } else {
145
+ format!("{:.1} days", duration.as_secs_f64() / 60.0 / 60.0 / 24.0)
146
}
147
148
0 commit comments