From 0e0aa633194b9de207a71958f40dbd0033b98feb Mon Sep 17 00:00:00 2001 From: Richard Fuchs Date: Tue, 4 Dec 2012 15:40:59 +0000 Subject: [PATCH] fix copy/paste error --- modules/lcr_rate/lcr_rate_mod.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/lcr_rate/lcr_rate_mod.c b/modules/lcr_rate/lcr_rate_mod.c index 7c6594cae..893ae38ca 100644 --- a/modules/lcr_rate/lcr_rate_mod.c +++ b/modules/lcr_rate/lcr_rate_mod.c @@ -206,7 +206,7 @@ static int peers_cmp(const void *aa, const void *bb) { return 1; if (a->cost > b->cost) return -1; - if (a->weight < b->cost) + if (a->weight < b->weight) return 1; return -1; }