diff options
author | wjoe <joe@lc8n.com> | 2012-04-12 12:10:34 +0100 |
---|---|---|
committer | wjoe <joe@lc8n.com> | 2012-04-12 12:10:34 +0100 |
commit | 034c0c0755ea19bb297096ae6bdbe1a7ef5a85e8 (patch) | |
tree | 507e773dc88373933c4aca323b05323c7f2234e3 | |
parent | 96f02907e80a21ffdaabfc3302566e0810202874 (diff) |
Changed !count output to show the name of the event
-rwxr-xr-x | perc | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -45,7 +45,9 @@ # 3.62: # - Removed the weekend check for now, so it works at weekends # - +# 3.63: +# - Changed the count output to say the name of the event +# import copy import decimal import json @@ -421,7 +423,7 @@ class Output(object): seconds = seconds - (hours*60*60) minutes = int(math.floor(seconds/60)) seconds = int(seconds - (minutes*60)) - print 'Event in ' + str(days) + ' day(s), ' + str(hours) + ' hour(s), ' + str(minutes) + ' minute(s), ' + str(seconds) + ' second(s).' + print finish + ' in ' + str(days) + ' day(s), ' + str(hours) + ' hour(s), ' + str(minutes) + ' minute(s), ' + str(seconds) + ' second(s).' def output(self, type, ratio, start, finish, count): func = getattr(self, type, self.perc) |