On Wed, Jul 31, 2013 at 10:47:47PM +0200, Antonio Quartulli wrote:
if (metric <= best_metric)
continue;
best_entry = orig_entry;
best_metric = metric;
Why don't you use the bat_metric_compare() function here?
BTW, do we need bat_metric_compare() anyway? I think both TQ and the metric in BATMAN V can work with integer comparison, so as long as we don't add some other "special" metrics we might not need this bat_metric_compare() at all?
Simon