diff options
author | Neels Hofmeyr <neels@hofmeyr.de> | 2017-12-05 01:03:39 +0100 |
---|---|---|
committer | Neels Hofmeyr <neels@hofmeyr.de> | 2018-01-12 03:28:14 +0100 |
commit | 1773de2dfca3b04c16ff7a428ec23d173cbd4a8e (patch) | |
tree | 8549a123c3b1a72a22ca0326af3e1739efd2ccbd /src | |
parent | facda94cfbe0f8dbfbdf1206b9f6ade3ae92e2ea (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 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) { |