Commit 92b8ef7e authored by Andreas Jung's avatar Andreas Jung

eye-friendly datetime representation

parent aaeb9477
...@@ -81,7 +81,7 @@ class StdoutHandler: ...@@ -81,7 +81,7 @@ class StdoutHandler:
seconds_to_go = seconds_so_far / current * (self._max - current) seconds_to_go = seconds_so_far / current * (self._max - current)
self.output('%d/%d (%.2f%%) Estimated termination: %s' % \ self.output('%d/%d (%.2f%%) Estimated termination: %s' % \
(current, self._max, (100.0 * current / self._max), (current, self._max, (100.0 * current / self._max),
DateTime(time.time() + seconds_to_go))) DateTime(time.time() + seconds_to_go).strftime('%Y/%m/%d %H:%M:%Sh')))
def output(self, text): def output(self, text):
print >>self.fp, '%s: %s' % (self._ident, text) print >>self.fp, '%s: %s' % (self._ident, text)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment