From c819a83b4d83413a31323c1304664ee4c228ca29 Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Tue, 16 Jan 2024 15:22:39 +0200 Subject: [PATCH] Don't use scientific notation in log messages --- src/kernel/mempool_persist.cpp | 2 +- src/policy/fees.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kernel/mempool_persist.cpp b/src/kernel/mempool_persist.cpp index cae4b04bf6572..57c5168e9f4c3 100644 --- a/src/kernel/mempool_persist.cpp +++ b/src/kernel/mempool_persist.cpp @@ -205,7 +205,7 @@ bool DumpMempool(const CTxMemPool& pool, const fs::path& dump_path, FopenFn mock } auto last = SteadyClock::now(); - LogPrintf("Dumped mempool: %gs to copy, %gs to dump\n", + LogPrintf("Dumped mempool: %.3fs to copy, %.3fs to dump\n", Ticks(mid - start), Ticks(last - mid)); } catch (const std::exception& e) { diff --git a/src/policy/fees.cpp b/src/policy/fees.cpp index 544054863609c..5f1d15c5f27a5 100644 --- a/src/policy/fees.cpp +++ b/src/policy/fees.cpp @@ -1055,7 +1055,7 @@ void CBlockPolicyEstimator::FlushUnconfirmed() _removeTx(mi->first, false); // this calls erase() on mapMemPoolTxs } const auto endclear{SteadyClock::now()}; - LogPrint(BCLog::ESTIMATEFEE, "Recorded %u unconfirmed txs from mempool in %gs\n", num_entries, Ticks(endclear - startclear)); + LogPrint(BCLog::ESTIMATEFEE, "Recorded %u unconfirmed txs from mempool in %.3fs\n", num_entries, Ticks(endclear - startclear)); } std::chrono::hours CBlockPolicyEstimator::GetFeeEstimatorFileAge()