From 7f34b585d38f8e7e3ea5ee60628145f8a29fe426 Mon Sep 17 00:00:00 2001 From: Cory McWilliams Date: Mon, 17 Mar 2025 21:13:20 -0400 Subject: [PATCH] ssb: Don't count messages we're not intending to replicate toward progress. --- src/ssb.ebt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ssb.ebt.c b/src/ssb.ebt.c index 7ec5ce2d..5a1434cf 100644 --- a/src/ssb.ebt.c +++ b/src/ssb.ebt.c @@ -66,11 +66,11 @@ static void _ebt_count_messages(tf_ssb_ebt_t* ebt, int* in, int* out) ebt_entry_t* entry = &ebt->entries[i]; if (entry->in >= 0 && entry->out >= 0) { - if (entry->in > entry->out) + if (entry->out_receive && entry->in > entry->out) { *in += entry->in - entry->out; } - else if (entry->out > entry->in) + else if (entry->in_receive && entry->out > entry->in) { *out += entry->out - entry->in; }