diff options
author | Kristaps Kaupe <kristaps@blogiem.lv> | 2024-01-16 15:22:39 +0200 |
---|---|---|
committer | Kristaps Kaupe <kristaps@blogiem.lv> | 2024-01-31 21:20:05 +0200 |
commit | c819a83b4d83413a31323c1304664ee4c228ca29 (patch) | |
tree | 27a55354635ca42eb441740622fe97ab32a2f7e9 /src | |
parent | 9fa8eda8af83b194f281385ad57ea79cad16cbe0 (diff) |
Don't use scientific notation in log messages
Diffstat (limited to 'src')
-rw-r--r-- | src/kernel/mempool_persist.cpp | 2 | ||||
-rw-r--r-- | 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 cae4b04bf6..57c5168e9f 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<SecondsDouble>(mid - start), Ticks<SecondsDouble>(last - mid)); } catch (const std::exception& e) { diff --git a/src/policy/fees.cpp b/src/policy/fees.cpp index 5440548636..5f1d15c5f2 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<SecondsDouble>(endclear - startclear)); + LogPrint(BCLog::ESTIMATEFEE, "Recorded %u unconfirmed txs from mempool in %.3fs\n", num_entries, Ticks<SecondsDouble>(endclear - startclear)); } std::chrono::hours CBlockPolicyEstimator::GetFeeEstimatorFileAge() |