From 6f8632de77d42007a1b83eb4026ea2cdc1169ea9 Mon Sep 17 00:00:00 2001 From: Ioannis Alexopoulos Date: Wed, 30 Jul 2025 17:07:44 +0200 Subject: [PATCH] Fix the bug that added the bytes_received value to itself at each count --- src/blink.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/blink.py b/src/blink.py index 189fbc9..0cd5bb2 100755 --- a/src/blink.py +++ b/src/blink.py @@ -67,8 +67,8 @@ def main(): bytes_received = 0 bytes_sent = 0 for node in nodes: - bytes_received += bytes_received + node.bytes_received - bytes_sent = bytes_sent + node.bytes_sent + bytes_received += node.bytes_received + bytes_sent += node.bytes_sent print("Bytes received with {} provers: {}".format(number_of_nodes, bytes_received)) print("Bytes sent with {} provers: {}".format(number_of_nodes, bytes_sent))