fix lowest resolution on hoursFromSeconds()

This commit is contained in:
Josh Holtrop 2011-02-25 20:50:45 -05:00
parent 0b2abe676b
commit 06350823ea

View File

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