diff options
Diffstat (limited to 'perc')
-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) |