Compare commits

..

2 Commits

Author SHA1 Message Date
Christoph Hagen
260de52533 Change run time display 2022-12-17 08:26:35 +01:00
Christoph Hagen
7c68d02169 Only show large thumbnails in most recent 2022-12-17 08:26:12 +01:00
2 changed files with 4 additions and 3 deletions

View File

@ -374,6 +374,9 @@ extension Element {
} }
func mostRecentElements(_ count: Int) -> [Element] { func mostRecentElements(_ count: Int) -> [Element] {
guard self.thumbnailStyle == .large else {
return []
}
guard self.containsElements else { guard self.containsElements else {
return [self] return [self]
} }

View File

@ -119,9 +119,7 @@ private func finish(start: Date, complete: Bool) {
print("--- SUMMARY ----------------------------------------") print("--- SUMMARY ----------------------------------------")
print(" ") print(" ")
let duration = Int(-start.timeIntervalSinceNow.rounded()) let duration = Int(-start.timeIntervalSinceNow.rounded())
if duration < 60 { if duration < 3600 {
print(" Duration: \(duration) s")
} else if duration < 3600 {
print(String(format: " Duration: %d:%02d", duration / 60, duration % 60)) print(String(format: " Duration: %d:%02d", duration / 60, duration % 60))
} else { } else {
print(String(format: " Duration: %d:%02d:%02d", duration / 3600, (duration / 60) % 60, duration % 60)) print(String(format: " Duration: %d:%02d:%02d", duration / 3600, (duration / 60) % 60, duration % 60))