liquid_feedback_core

changeset 402:29835e2525bd

Improved comments/debug output in lf_update_issue_order.c
author jbe
date Sat Oct 12 18:58:51 2013 +0200 (2013-10-12)
parents ee922d286992
children 236cabef04d2
files lf_update_issue_order.c
line diff
     1.1 --- a/lf_update_issue_order.c	Sat Oct 12 15:48:57 2013 +0200
     1.2 +++ b/lf_update_issue_order.c	Sat Oct 12 18:58:51 2013 +0200
     1.3 @@ -81,11 +81,11 @@
     1.4    return candidate;
     1.5  }
     1.6  
     1.7 -// ballot of the proportional runoff system:
     1.8 +// ballot of the proportional runoff system, containing only one preference section:
     1.9  struct ballot {
    1.10    int weight;  // if weight is greater than 1, then the ballot is counted multiple times
    1.11 -  int count;
    1.12 -  struct candidate **candidates;
    1.13 +  int count;   // number of candidates
    1.14 +  struct candidate **candidates;  // all candidates equally preferred
    1.15  };
    1.16  
    1.17  // open issue to be assigned an "order_in_open_states":
    1.18 @@ -371,7 +371,7 @@
    1.19      // trivial case, when there are no tuples:
    1.20      if (!tuple_count) {
    1.21        // write results to database:
    1.22 -      if (logging) printf("No supporters for any issue. Deleting ranks in database.\n");
    1.23 +      if (logging) printf("No supporters for any issue. Writing ranks to database.\n");
    1.24        err = write_ranks(db, escaped_area_id);
    1.25        if (logging) printf("Done.\n");
    1.26        return 0;

Impressum / About Us