aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-04 16:51:44 +0200
committerJacob Erlbeck <jerlbeck@sysmocom.de>2015-06-08 09:40:41 +0200
commit144a1d0516187d09f80c8b9125c6e51b4988503f (patch)
treedd3a523ae2f4afbbab4e47afa63dd183442559c1
parent8322d08071d740b033941271d584a52d25565a94 (diff)
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
-rw-r--r--src/tbf_dl.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tbf_dl.cpp b/src/tbf_dl.cpp
index fa1b8ac..3f2ef22 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);