From 8a988e1cd5bd4c49660819494949305963d08173 Mon Sep 17 00:00:00 2001 From: Martin Stefcek Date: Thu, 19 Aug 2021 12:14:53 +0200 Subject: [PATCH] fix: division by zero --- base_layer/wallet_ffi/src/tasks.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base_layer/wallet_ffi/src/tasks.rs b/base_layer/wallet_ffi/src/tasks.rs index ce97684d01..9c44c94106 100644 --- a/base_layer/wallet_ffi/src/tasks.rs +++ b/base_layer/wallet_ffi/src/tasks.rs @@ -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 );