From 00383797c432658dab5eabfe837345206a40051e Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Wed, 8 Jul 2015 20:36:25 +0000 Subject: reproducible: scheduler: fix total counter --- bin/reproducible_scheduler.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py index dd5f6abb..7ffcd61a 100755 --- a/bin/reproducible_scheduler.py +++ b/bin/reproducible_scheduler.py @@ -334,9 +334,8 @@ def scheduler(): message += msg_new if msg_new else '' message += ' and ' if msg_untested or msg_old and msg_untested else '' message += msg_old if msg_old else '' - total = 0 - total += [now_queued_here[x] for x in SUITES] - message += ', for ' + total + ' or ' + \ + total = [now_queued_here[x] for x in SUITES] + message += ', for ' + str(sum(total)) + ' or ' + \ '+'.join([str(now_queued_here[x]) for x in SUITES]) + ' packages in total.' log.info('\n\n\n') log.info(message) -- cgit v1.2.3-70-g09d2