From 4dd748186f642e0dea5a1167ae097ba3dc03277b Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Fri, 10 Sep 2021 00:46:07 +1000 Subject: [PATCH] Fix logic error with CSV reporting of nontransferables with invalid votes --- src/cli/stv.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cli/stv.rs b/src/cli/stv.rs index ed9d9ce..0235c8d 100644 --- a/src/cli/stv.rs +++ b/src/cli/stv.rs @@ -543,7 +543,7 @@ where } else { stage_results[3 + election.candidates.len()].push(format!(r#"{:.dps$}"#, nt_transfers, dps=opts.pp_decimals)); } - stage_results[3 + election.candidates.len()].push(format!(r#"{:.dps$}"#, &state.exhausted.votes + &state.loss_fraction.votes, dps=opts.pp_decimals)); + stage_results[3 + election.candidates.len()].push(format!(r#"{:.dps$}"#, &state.exhausted.votes + &state.loss_fraction.votes - &invalid_votes, dps=opts.pp_decimals)); // Totals stage_results[4 + election.candidates.len()].push(String::new());