# HG changeset patch # User jbe # Date 1363595091 -3600 # Node ID f65814f4d3fcc6e364125f6e9765baed9292dd86 # Parent 4a18576a359f625ebe97df3a56234b1ca5e36208 Improved log output of lf_update_suggestion_order diff -r 4a18576a359f -r f65814f4d3fc lf_update_suggestion_order.c --- a/lf_update_suggestion_order.c Mon Mar 18 09:09:29 2013 +0100 +++ b/lf_update_suggestion_order.c Mon Mar 18 09:24:51 2013 +0100 @@ -150,7 +150,7 @@ for (i=0; i 0.0) { double max_scale; max_scale = (1.0-candidates[i].score) / candidates[i].score_per_step; @@ -163,7 +163,10 @@ if (candidates[i].score >= 1.0) remaining--; } } - if (log_candidate) printf("%.4f.\n", candidates[i].score); + if (log_candidate) { + if (candidates[i].score >= 1.0) printf("=1\n"); + else printf("=%.4f\n", candidates[i].score); + } // when there is only one candidate remaining, then break inner (and thus outer) loop: if (remaining <= 1) { break; @@ -382,18 +385,22 @@ if (logging) { for (i=0; ikey); + if (!k) printf("suggestions "); + else printf(", "); + printf("#%s", ballots[i].sections[j].candidates[k]->key); } - printf(")"); + if (!k) printf("empty"); + printf(".\n"); } - printf(".\n"); } } }