Explorar el Código

Fixed time display.

Kristian Schultz hace 4 años
padre
commit
1347f5d31a
Se han modificado 1 ficheros con 3 adiciones y 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: