From 0a7189e54fc552b24d09a276ab5b2b3e5e731aee Mon Sep 17 00:00:00 2001 From: RunasSudo Date: Sun, 5 Sep 2021 00:13:29 +1000 Subject: [PATCH] Complete ccc3266 --- src/stv/wasm.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/stv/wasm.rs b/src/stv/wasm.rs index 1e70a18..91fbbc9 100644 --- a/src/stv/wasm.rs +++ b/src/stv/wasm.rs @@ -522,9 +522,9 @@ fn update_results_table(stage_num: usize, state: &CountState, opts match report_style { "votes" => { - result.push(&format!(r#"{}"#, classes_i, pp(&state.exhausted.transfers, opts.pp_decimals)).into()); + result.push(&format!(r#"{}"#, classes_i, pps(&state.exhausted.transfers, opts.pp_decimals)).into()); result.push(&format!(r#"{}"#, classes_i, pp(&state.exhausted.votes, opts.pp_decimals)).into()); - result.push(&format!(r#"{}"#, classes_i, pp(&state.loss_fraction.transfers, opts.pp_decimals)).into()); + result.push(&format!(r#"{}"#, classes_i, pps(&state.loss_fraction.transfers, opts.pp_decimals)).into()); result.push(&format!(r#"{}"#, classes_i, pp(&state.loss_fraction.votes, opts.pp_decimals)).into()); } "votes_transposed" => { @@ -537,9 +537,9 @@ fn update_results_table(stage_num: usize, state: &CountState, opts } } "ballots_votes" => { - result.push(&format!(r#"{}{}"#, classes_i, pp(&state.exhausted.ballot_transfers, 0), pp(&state.exhausted.transfers, opts.pp_decimals)).into()); + result.push(&format!(r#"{}{}"#, classes_i, pps(&state.exhausted.ballot_transfers, 0), pps(&state.exhausted.transfers, opts.pp_decimals)).into()); result.push(&format!(r#"{}{}"#, classes_i, pp(&state.exhausted.num_ballots(), 0), pp(&state.exhausted.votes, opts.pp_decimals)).into()); - result.push(&format!(r#"{}"#, classes_i, pp(&state.loss_fraction.transfers, opts.pp_decimals)).into()); + result.push(&format!(r#"{}"#, classes_i, pps(&state.loss_fraction.transfers, opts.pp_decimals)).into()); result.push(&format!(r#"{}"#, classes_i, pp(&state.loss_fraction.votes, opts.pp_decimals)).into()); } _ => unreachable!("Invalid report_style")