summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwjoe <joe@lc8n.com>2012-04-12 12:10:34 +0100
committerwjoe <joe@lc8n.com>2012-04-12 12:10:34 +0100
commit034c0c0755ea19bb297096ae6bdbe1a7ef5a85e8 (patch)
tree507e773dc88373933c4aca323b05323c7f2234e3
parent96f02907e80a21ffdaabfc3302566e0810202874 (diff)
Changed !count output to show the name of the event
-rwxr-xr-xperc6
1 files changed, 4 insertions, 2 deletions
diff --git a/perc b/perc
index 32ae154..9d0a3b2 100755
--- a/perc
+++ b/perc
@@ -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)