From f0a392be164383a8fad478eff9e30a5db62d7ef7 Mon Sep 17 00:00:00 2001 From: DJ2LS <75909252+DJ2LS@users.noreply.github.com> Date: Sat, 11 Sep 2021 09:41:37 +0200 Subject: [PATCH] updated transmission progress for TX --- tnc/helpers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tnc/helpers.py b/tnc/helpers.py index 7b81aa93..12bc2eb8 100644 --- a/tnc/helpers.py +++ b/tnc/helpers.py @@ -170,7 +170,8 @@ def calculate_transfer_rate(): # PERCENTAGE FOR TRANSMITTING if static.TX_BUFFER_SIZE > 0: - static.ARQ_TRANSMISSION_PERCENT = int(arq_rx_n_current_arq_frame / static.TX_BUFFER_SIZE) * 100 + print("static.ARQ_N_SENT_FRAMES: " + str(static.ARQ_N_SENT_FRAMES)) + static.ARQ_TRANSMISSION_PERCENT = int((static.ARQ_N_SENT_FRAMES / static.TX_BUFFER_SIZE) * 100) # PERCENTAGE FOR RECEIVING elif arq_n_arq_frames_per_data_frame > 0: