forked from cory/tildefriends
ssb: Don't count messages we're not intending to replicate toward progress.
This commit is contained in:
parent
d7e9fd918a
commit
7f34b585d3
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user