Bias quality to avoid exposure of transient errors
This commit is contained in:
parent
b03520376a
commit
8e48c4f3fe
1 changed files with 4 additions and 1 deletions
|
@ -248,11 +248,14 @@ transport_get_prio(th_transport_t *t)
|
|||
*
|
||||
* But for sorting, we want low numbers first
|
||||
*
|
||||
* Also, we bias and trim with an offset of two to avoid counting any
|
||||
* transient errors.
|
||||
*/
|
||||
|
||||
static int
|
||||
transport_get_quality(th_transport_t *t)
|
||||
{
|
||||
return t->tht_quality_index ? -(t->tht_quality_index(t)) : 0;
|
||||
return t->tht_quality_index ? -MIN(t->tht_quality_index(t) + 2, 0) : 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue