Skip to content

Commit

Permalink
fix: division by zero
Browse files Browse the repository at this point in the history
  • Loading branch information
Cifko committed Aug 19, 2021
1 parent d9412c2 commit 8a988e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion base_layer/wallet_ffi/src/tasks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ pub async fn recovery_event_monitoring(
"Recovery complete! Scanned = {} in {:.2?} ({} utxos/s), Recovered {} worth {}",
num_scanned,
elapsed,
num_scanned / elapsed.as_secs(),
num_scanned / (1 + elapsed.as_secs()),
num_utxos,
total_amount
);
Expand Down

0 comments on commit 8a988e1

Please sign in to comment.