diff options
author | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-04-03 10:37:44 +0200 |
---|---|---|
committer | MarcoFalke <*~=`'#}+{/-|&$^_@721217.xyz> | 2023-04-04 12:34:06 +0200 |
commit | fa2c099cec1780a498e198750be0cf5bf0ca315a (patch) | |
tree | d2f4d1c030265ece3b33a99864f3bf9c01991a1b /src/wallet/rpc | |
parent | fa976218044f3ff244abbd797b183a1408375c74 (diff) |
wallet: Use steady clock to measure scanning duration
Diffstat (limited to 'src/wallet/rpc')
-rw-r--r-- | src/wallet/rpc/wallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/rpc/wallet.cpp b/src/wallet/rpc/wallet.cpp index 16595267b4..8189ac6cb8 100644 --- a/src/wallet/rpc/wallet.cpp +++ b/src/wallet/rpc/wallet.cpp @@ -112,7 +112,7 @@ static RPCHelpMan getwalletinfo() obj.pushKV("avoid_reuse", pwallet->IsWalletFlagSet(WALLET_FLAG_AVOID_REUSE)); if (pwallet->IsScanning()) { UniValue scanning(UniValue::VOBJ); - scanning.pushKV("duration", pwallet->ScanningDuration() / 1000); + scanning.pushKV("duration", Ticks<std::chrono::seconds>(pwallet->ScanningDuration())); scanning.pushKV("progress", pwallet->ScanningProgress()); obj.pushKV("scanning", scanning); } else { |