improved information
This commit is contained in:
parent
57fa414862
commit
6052a90a12
|
|
@ -52,6 +52,9 @@ impl Counter {
|
|||
}
|
||||
ScoreItems::new(scores, &self.enabled)
|
||||
}
|
||||
pub fn get_quota(&self) -> f64 {
|
||||
self.quota
|
||||
}
|
||||
}
|
||||
|
||||
impl Iterator for Counter {
|
||||
|
|
|
|||
|
|
@ -25,9 +25,12 @@ fn main() {
|
|||
let total = counter.ballots.len() as f64;
|
||||
let header = counter.header.clone();
|
||||
|
||||
eprintln!("Header: {:#?}", header);
|
||||
eprintln!("Parties: {}", header.parties.len());
|
||||
eprintln!("Candidates: {}", header.candidates.len());
|
||||
eprintln!("Vacancies: {}", winner_count);
|
||||
eprintln!("Ballots: {}", counter.ballots.len());
|
||||
eprintln!("Quota: {}", counter.get_quota());
|
||||
eprintln!();
|
||||
|
||||
eprintln!("Running election rounds:");
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue