From 144a1d0516187d09f80c8b9125c6e51b4988503f Mon Sep 17 00:00:00 2001 From: Jacob Erlbeck Date: Thu, 4 Jun 2015 16:51:44 +0200 Subject: 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 --- src/tbf_dl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tbf_dl.cpp b/src/tbf_dl.cpp index fa1b8ac9..3f2ef22b 100644 --- a/src/tbf_dl.cpp +++ b/src/tbf_dl.cpp @@ -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); -- cgit v1.2.3