tbf: Ignore lost+recv == 1

Currently the CS level gets changed quickly if single RLC/MAC blocks
are sent (e.g. LLC dummy commands), since the rate is either 0% or
100%.

This commit ignores measurements which are based on a single block
only.

Sponsored-by: On-Waves ehf
This commit is contained in:
Jacob Erlbeck 2015-06-04 16:51:44 +02:00
parent 8322d08071
commit 144a1d0516
1 changed files with 1 additions and 1 deletions

View File

@ -726,7 +726,7 @@ int gprs_rlcmac_dl_tbf::analyse_errors(char *show_rbb, uint8_t ssn)
name(), m_window.v_a(), m_window.v_s(), lost, received,
skipped, bsn, info);
if (lost + received == 0)
if (lost + received <= 1)
return -1;
return lost * 100 / (lost + received);