Mercurial > hg > freeDiameter
changeset 1401:1a9c73262a88 1.4.0
Fix type.
author | Thomas Klausner <tk@giga.or.at> |
---|---|
date | Tue, 03 Dec 2019 18:25:17 +0100 |
parents | 1409e693fa0f |
children | d1827bc3cf90 |
files | extensions/rt_load_balance/rt_load_balance.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/extensions/rt_load_balance/rt_load_balance.c Tue Dec 03 18:18:59 2019 +0100 +++ b/extensions/rt_load_balance/rt_load_balance.c Tue Dec 03 18:25:17 2019 +0100 @@ -117,7 +117,7 @@ struct best_candidate_entry *entry = best_candidates+j; if (entry->load == min_load) { struct rtd_candidate *cand = entry->cand; - long old_score = cand->score; + int old_score = cand->score; cand->score++; TRACE_DEBUG(FULL, "%s: boosting peer `%.*s', score was %d, now %d; load was %ld", MODULE_NAME, (int)cand->diamidlen, cand->diamid, old_score, cand->score, entry->load);