From 2420dacc8cc81e8240c27d3b78c80fa8cba59527 Mon Sep 17 00:00:00 2001 From: csguest Date: Sun, 14 Jun 2015 06:00:10 -0400 Subject: Little things: Show clients and notestreams per file --- broadcast.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'broadcast.py') diff --git a/broadcast.py b/broadcast.py index fe2b466..aaf1276 100644 --- a/broadcast.py +++ b/broadcast.py @@ -53,6 +53,8 @@ except IOError: exit() notestreams = iv.findall("./streams/stream[@type='ns']") +print len(notestreams), 'notestreams' +print len(clients), 'clients' class NSThread(threading.Thread): def run(self): @@ -70,7 +72,7 @@ class NSThread(threading.Thread): threads = [] for ns in notestreams: if not clients: - print 'WARNING: Out of clients!' + print 'WARNING: Out of clients!', break nsq = ns.findall('note') threads.append(NSThread(args=(nsq, clients.pop(0)))) -- cgit v1.2.3-70-g09d2