Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > c4aaebff5a034775f37cbc49827cf3b9 > files > 17

smart-0.51-17mdv2008.0.src.rpm

diff -Naur smart-0.51/smart/util/strtools.py smart-0.51.tpg/smart/util/strtools.py
--- smart-0.51/smart/util/strtools.py	2006-10-20 17:48:22.000000000 +0000
+++ smart-0.51.tpg/smart/util/strtools.py	2007-09-14 14:14:56.000000000 +0000
@@ -81,7 +81,9 @@
     else:
         minutes, seconds = divmod(time, 60)
         hours, minutes = divmod(minutes, 60)
-        if hours > 0:
+        if hours > 999:
+	    return "Stalled"
+	elif hours > 0:
             return "%02ih%02im%02is" % (hours, minutes, seconds)
         elif minutes > 0:
             return "%02im%02is" % (minutes, seconds)