From 48980c81d8d2ec5f6f79372dbe19e0666168f61d Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Wed, 8 Jul 2015 21:57:32 +0200 Subject: reproducible: correctly calculate total amount of packages --- bin/reproducible_scheduler.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/reproducible_scheduler.py b/bin/reproducible_scheduler.py index b2fcb11f..dd5f6abb 100755 --- a/bin/reproducible_scheduler.py +++ b/bin/reproducible_scheduler.py @@ -334,7 +334,9 @@ 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 '' - message += ', for ' + str(total) + ' or ' + \ + total = 0 + total += [now_queued_here[x] for x in SUITES] + message += ', for ' + 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