hamster-applet r847 - trunk/hamster
- From: tbaugis svn gnome org
- To: svn-commits-list gnome org
- Subject: hamster-applet r847 - trunk/hamster
- Date: Wed, 11 Mar 2009 12:55:18 +0000 (UTC)
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]