From f5f58cfcd64c14eb5cfce8afb1ee73c8658bdb3f Mon Sep 17 00:00:00 2001 From: hkc Date: Wed, 10 Jul 2024 00:29:12 +0300 Subject: [PATCH] Show # of workers too --- swarm/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swarm/worker.py b/swarm/worker.py index 39f5194..7fc1e4a 100644 --- a/swarm/worker.py +++ b/swarm/worker.py @@ -101,7 +101,7 @@ class WorkerManager: diff = time.time() - last_printout print() - print(f"Workers: {self.workers}") + print(f"Workers: {len(self.workers)} {self.workers}") print(f"Queue size: {self.queue.qsize()}/{self.queue.maxsize}") print(f"Toggles: {self.n_toggles / diff:.2f}/s")