Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 3132340ac1ff3a2346515315e68f4f15 > files > 10

smart-1.1-1mdv2009.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)