hamster-applet r847 - trunk/hamster



Author: tbaugis
Date: Wed Mar 11 12:55:18 2009
New Revision: 847
URL: http://svn.gnome.org/viewvc/hamster-applet?rev=847&view=rev

Log:
for the less human friendly duration format show "00:00" 
when duration = 0

Modified:
   trunk/hamster/stuff.py

Modified: trunk/hamster/stuff.py
==============================================================================
--- trunk/hamster/stuff.py	(original)
+++ trunk/hamster/stuff.py	Wed Mar 11 12:55:18 2009
@@ -99,7 +99,10 @@
 
 def format_duration(minutes, human = True):
     if not minutes:
-        return ""
+        if human:
+            return ""
+        else:
+            return "00:00"
     
     hours = minutes / 60
     minutes = minutes % 60



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]