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")