Explorar o código

Fixed time display.

Kristian Schultz %!s(int64=4) %!d(string=hai) anos
pai
achega
1347f5d31a
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  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: