diff options
author | glozow <gloriajzhao@gmail.com> | 2024-02-05 14:20:00 +0000 |
---|---|---|
committer | glozow <gloriajzhao@gmail.com> | 2024-02-05 14:21:10 +0000 |
commit | 9eeee7caa3f95ee17a645e12d330261f8e3c2dbf (patch) | |
tree | 352d9579698e67f769ac71c809f35e6f987f6420 /src/kernel | |
parent | cd3683c21a297cc926ffa11dbb3f0678505582a8 (diff) | |
parent | c819a83b4d83413a31323c1304664ee4c228ca29 (diff) | |
download | bitcoin-9eeee7caa3f95ee17a645e12d330261f8e3c2dbf.tar.xz |
Merge bitcoin/bitcoin#29254: log: Don't use scientific notation in log messages
c819a83b4d83413a31323c1304664ee4c228ca29 Don't use scientific notation in log messages (Kristaps Kaupe)
Pull request description:
Don't see any benefits here, only harder to read for most of the users.
Before:
```
2024-01-16T13:11:36Z Dumped mempool: 8.165e-06s to copy, 0.00224268s to dump
```
After:
```
2024-01-16T13:11:36Z Dumped mempool: 0.000s to copy, 0.002s to dump
```
ACKs for top commit:
kristapsk:
> > > > lgtm ACK [c819a83](https://github.com/bitcoin/bitcoin/commit/c819a83b4d83413a31323c1304664ee4c228ca29). can you update the PR description?
glozow:
lgtm ACK c819a83b4d83413a31323c1304664ee4c228ca29. can you update the PR description?
Tree-SHA512: 0972e0a05934e1b014fdeca0c235065aa017ba9abf74b3018f514e4d8022ef02b7f042a07d3675144b51449492468aea6b5b0183233ad7f1bab887d18e3d06af
Diffstat (limited to 'src/kernel')
-rw-r--r-- | src/kernel/mempool_persist.cpp | 2 |
1 files changed, 1 insertions, 1 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) { |