-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1.0.2] Fix incorrect reported total time of applying a received block or produced block #837
Conversation
|
||
ilog("Produced block ${id}... #${n} @ ${t} signed by ${p} " | ||
"[trxs: ${count}, lib: ${lib}${confs}, net: ${net}, cpu: ${cpu}, elapsed: ${et}, time: ${tt}]", | ||
"[trxs: ${count}, lib: ${lib}${confs}, net: ${net}, cpu: ${cpu}, elapsed: ${et} us, time: ${tt} us]", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason to only add us
to "elapsed" and "time" but not "cpu"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for spotting this. There was no reason. I overlooked cpu
. Will add us
in a future PR.
Note:start |
Ported fix from
main
for incorrect reported total time of applying a received block or produced block.Only minimum required changes were made, except adding time unit
us
forelapsed
andtime
for better clarity becauselatency
already hadms
as postfix.Before the change:
info 2024-09-30T14:33:33.415 nodeos controller.cpp:3633 log_applied ] Received block bcd746757a3db674... #366563000 @ 2024-08-04T19:14:51.500 signed by eosusacartel [trxs: 0, lib: 366562668, net: 0, cpu: 100, elapsed: 259, time: 869, latency: 4907921915 ms
After the change:
info 2024-09-30T14:35:11.723 nodeos controller.cpp:3627 log_applied ] Received block bcd746757a3db674... #366563000 @ 2024-08-04T19:14:51.500 signed by eosusacartel [trxs: 0, lib: 366562668, net: 0, cpu: 100, elapsed: 258 us, time: 554 us, latency: 4908020223 ms]
Resolves #828