Skip to content

Commit

Permalink
Float perf feedback (solana-labs#1428)
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcmay authored Mar 10, 2021
1 parent 78f7f7f commit 7567b41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libraries/math/src/processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ pub fn process_instruction(
multiplier,
} => {
msg!("Calculating U64 Multiply");
let result = multiplicand + multiplier;
let result = multiplicand * multiplier;
msg!("{}", result);
Ok(())
}
Expand Down
2 changes: 1 addition & 1 deletion libraries/math/tests/instruction_count.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ async fn test_sqrt_u128_max() {
async fn test_u64_multiply() {
let mut pc = ProgramTest::new("spl_math", id(), processor!(process_instruction));

pc.set_bpf_compute_max_units(1300);
pc.set_bpf_compute_max_units(1200);

let (mut banks_client, payer, recent_blockhash) = pc.start().await;

Expand Down

0 comments on commit 7567b41

Please sign in to comment.