aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-12-05 01:03:39 +0100
committerNeels Hofmeyr <neels@hofmeyr.de>2018-01-19 16:03:16 +0100
commitf9b8cb19e2fd6f0cd029d48f90fb087eb9e41080 (patch)
treea3a368059f7a4ca3cba933c56d51e28cc9ecbba0
parent186e47816427187a6317ec4022e451506a4cef7a (diff)
fixup: neigh_meas_avg: fix condition to reduce window size
-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 1ad4b3672..127b362c1 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) {