From f1000a053a125e044e259e9e03f239b9bf1cd5ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Tue, 20 Feb 2024 16:03:26 +0100 Subject: [PATCH] removed time debug of publishing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/server/app.py b/server/app.py index 6a5a82e..2f7d442 100644 --- a/server/app.py +++ b/server/app.py @@ -128,7 +128,6 @@ def mqtt_publisher(ti_receiver): print("Receiving of artnet packet took: "+str(end-start)) if artNetPacket is not None: if tube_index is not None: - start = time.time() for index_row in tube_index: if artNetPacket.universe == int(index_row[1]): dmx_address = int(index_row[2]) @@ -143,8 +142,6 @@ def mqtt_publisher(ti_receiver): result_str = [str(color) for color in colors] result = str(result_str) mqtt_client.publish(p1_topic, result) - end = time.time() - print("Sending out to all tubes took: "+str(end-start)) except KeyboardInterrupt: artNet.close() def tube_index_updater(ti_queue):