fix lowest resolution on hoursFromSeconds()

This commit is contained in:
Josh Holtrop committed 2011-02-25 20:50:45 -05:00
1 parent 0b2abe676b
commit 06350823ea
1 file changed
+2 -2
+2 -2
View File
@@ -124,8 +124,8 @@ class Window:
self.project_hour_labels[p][day].set_text(hrs) self.project_hour_labels[p][day].set_text(hrs)
def hoursFromSeconds(self, secs): def hoursFromSeconds(self, secs):
if secs < 0.6 * 60 * 60: if secs < 0.1 * 60 * 60:
secs = 0.6 * 60 * 60; secs = 0.1 * 60 * 60;
return "%.1f" % (secs / 60.0 / 60.0) return "%.1f" % (secs / 60.0 / 60.0)
def main(self): def main(self):