aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-12-05 01:03:39 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2018-01-12 03:28:14 +0100
commit1773de2dfca3b04c16ff7a428ec23d173cbd4a8e (patch)
tree8549a123c3b1a72a22ca0326af3e1739efd2ccbd /src
parentfacda94cfbe0f8dbfbdf1206b9f6ade3ae92e2ea (diff)
fixup: neigh_meas_avg: fix condition to reduce window size
Diffstat (limited to 'src')
-rw-r--r--src/libbsc/handover_decision.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libbsc/handover_decision.c b/src/libbsc/handover_decision.c
index d62909db3..01119cf4c 100644
--- a/src/libbsc/handover_decision.c
+++ b/src/libbsc/handover_decision.c
@@ -100,7 +100,7 @@ static int neigh_meas_avg(struct neigh_meas_proc *nmp, int window)
int avg = 0;
/* reduce window to the actual number of existing measurements */
- if (window < nmp->rxlev_cnt)
+ if (window > nmp->rxlev_cnt)
window = nmp->rxlev_cnt;
/* this should never happen */
if (window <= 0) {