ssb: Don't count messages we're not intending to replicate toward progress.

This commit is contained in:
Cory McWilliams 2025-03-17 21:13:20 -04:00
parent d7e9fd918a
commit 7f34b585d3

View File

@ -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]; ebt_entry_t* entry = &ebt->entries[i];
if (entry->in >= 0 && entry->out >= 0) 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; *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; *out += entry->out - entry->in;
} }