[PATCH] osmo-bsc[master]: fixup: neigh_meas_avg: fix condition to reduce window size

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Fri Jan 19 03:03:54 UTC 2018


Review at  https://gerrit.osmocom.org/5903

fixup: neigh_meas_avg: fix condition to reduce window size

Change-Id: Ia2269be448436d676289c84b9b05da7f51ee4a85
---
M src/libbsc/handover_decision.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/03/5903/1

diff --git a/src/libbsc/handover_decision.c b/src/libbsc/handover_decision.c
index 1ad4b36..127b362 100644
--- a/src/libbsc/handover_decision.c
+++ b/src/libbsc/handover_decision.c
@@ -100,7 +100,7 @@
 	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) {

-- 
To view, visit https://gerrit.osmocom.org/5903
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ia2269be448436d676289c84b9b05da7f51ee4a85
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list