You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kibble.apache.org by hu...@apache.org on 2017/10/21 19:09:47 UTC

[kibble-scanners] branch master updated: only display count on every 10th ticket

This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/kibble-scanners.git


The following commit(s) were added to refs/heads/master by this push:
     new c273a96  only display count on every 10th ticket
c273a96 is described below

commit c273a96e4310e99c57656720719d8e257ddab94c
Author: Daniel Gruno <hu...@apache.org>
AuthorDate: Sat Oct 21 21:09:39 2017 +0200

    only display count on every 10th ticket
    
    we don't wanna flood when we have thousands of tickets.
---
 src/plugins/scanners/bugzilla.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/plugins/scanners/bugzilla.py b/src/plugins/scanners/bugzilla.py
index 26b4c74..8f4c223 100644
--- a/src/plugins/scanners/bugzilla.py
+++ b/src/plugins/scanners/bugzilla.py
@@ -256,7 +256,8 @@ class bzThread(Thread):
         badOnes = 0
         
         while len(self.pendingTickets) > 0 and badOnes <= 50:
-            self.KibbleBit.pprint("%u elements left to count" % len(self.pendingTickets))
+            if len(self.pendingTickets) % 10 == 0:
+                self.KibbleBit.pprint("%u elements left to count" % len(self.pendingTickets))
             self.block.acquire()
             try:
                 rl = self.pendingTickets.pop(0)

-- 
To stop receiving notification emails like this one, please contact
['"commits@kibble.apache.org" <co...@kibble.apache.org>'].