diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2017-12-05 01:03:39 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2018-01-19 16:03:16 +0100 |
commit | f9b8cb19e2fd6f0cd029d48f90fb087eb9e41080 (patch) | |
tree | a3a368059f7a4ca3cba933c56d51e28cc9ecbba0 /src | |
parent | 186e47816427187a6317ec4022e451506a4cef7a (diff) |
fixup: neigh_meas_avg: fix condition to reduce window size
Change-Id: Ia2269be448436d676289c84b9b05da7f51ee4a85
Diffstat (limited to 'src')
-rw-r--r-- | src/libbsc/handover_decision.c | 2 |
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) { |