No need for such accuracy (and reduces readability of debug.log) #4452

pull rebroad wants to merge 1 commits into bitcoin:master from rebroad:AskforTimeDebug changing 1 files +3 −8
  1. rebroad commented at 3:12 AM on July 2, 2014: contributor

    Revert to previous behaviour. This way the ++nLastTime number can be viewed within debug.log. If the GetTimeMicros() is kept, then there is no need to display the number (not converted to a time) since this provides no useful information any longer.

  2. laanwj commented at 6:41 AM on July 2, 2014: member

    This affects more than the debug.log. Please change the logging instead.

  3. rebroad commented at 12:23 AM on July 3, 2014: contributor

    @laanwj ah, yes, that might make more sense. Will do.

  4. rebroad commented at 2:58 AM on July 4, 2014: contributor

    @laanwj Actually the whole thing with nLastTime isn't needed any more is it? This was only needed when nNow was recorded in seconds, but now that it's milliseconds, it's very unlikely there'll be two nNows that are equal. Also, the -1 was added when it was seconds since 1 was the small subtraction possible. Why, when it changes to milliseconds, was the 1 changed to 1000000? 1 is still the smallest subtraction possible, so surely it should be -1 not -1000000. Or am I misunderstanding the point of the code? @sipa ?

  5. Change AskFor to remove kludge that was needed when time was stored in seconds.
    Not needed now that time is stored in Milliseconds.
    c8f1cf56d4
  6. laanwj commented at 3:52 AM on July 4, 2014: member

    What the code that you removed does is make sure that timestamps are monotonically increasing. NACK on removing it.

  7. BitcoinPullTester commented at 4:29 AM on July 4, 2014: none

    Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/p4452_c8f1cf56d4d76c75f75f06eef54c8a521807795e/ for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.

  8. laanwj commented at 10:31 AM on July 22, 2014: member

    Closing this - if you want to change logging, just change logging.

  9. laanwj closed this on Jul 22, 2014

  10. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-22 18:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me