show hours to the hundredth by default

This commit is contained in:
Josh Holtrop 2011-02-25 21:00:30 -05:00
parent 06350823ea
commit 96e018e308

View File

@ -124,9 +124,9 @@ class Window:
self.project_hour_labels[p][day].set_text(hrs)
def hoursFromSeconds(self, secs):
if secs < 0.1 * 60 * 60:
secs = 0.1 * 60 * 60;
return "%.1f" % (secs / 60.0 / 60.0)
if secs < 0.01 * 60 * 60:
secs = 0.01 * 60 * 60;
return "%.2f" % (secs / 60.0 / 60.0)
def main(self):
self.window.show_all()