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; }