Selaa lähdekoodia

Fixed time display.

Kristian Schultz 4 vuotta sitten
vanhempi
commit
1347f5d31a
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. 3 0
      library/analysis.py

+ 3 - 0
library/analysis.py

@@ -117,6 +117,9 @@ def showTime(t):
     m = s // 60
     h = m // 60
     d = h // 24
+    s = s % 60
+    m = m % 60
+    h = h % 24
     if d > 0:
         return f"{d} days {h:02d}:{m:02d}:{s:02d}"
     else: