aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--iosApp/iosApp/Devices/DeviceRow.swift6
1 files changed, 3 insertions, 3 deletions
diff --git a/iosApp/iosApp/Devices/DeviceRow.swift b/iosApp/iosApp/Devices/DeviceRow.swift
index e7966d2..f93687a 100644
--- a/iosApp/iosApp/Devices/DeviceRow.swift
+++ b/iosApp/iosApp/Devices/DeviceRow.swift
@@ -104,10 +104,10 @@ struct DeviceRow: View {
}
/* Hourmeter */
- if let hourmeter = unit.getHourmeter() {
+ if let hourmeter = Int64(truncating: unit.getHourmeter() ?? 0),
+ hourmeter >= 60 * 60 * 1000 {
HStack {
- Label(Formatter.companion.formatHours(
- millis: Int64(truncating: hourmeter)),
+ Label(Formatter.companion.formatHours(millis: hourmeter),
systemImage: "timer")
.labelStyle(SmallLabelStyle())
Spacer()