Browse Source

Only log time samples in debug mode

The full list of time samples is rarely useful outside of debugging.
The node's time offset, however is useful for discovering local clock
drift, so it's displayed in all logging modes.
0.8
Michael Hendricks 13 years ago
parent
commit
5e1ddc4210
  1. 9
      src/util.cpp

9
src/util.cpp

@ -977,9 +977,12 @@ void AddTimeData(unsigned int ip, int64 nTime)
} }
} }
} }
BOOST_FOREACH(int64 n, vTimeOffsets) if (fDebug) {
printf("%+"PRI64d" ", n); BOOST_FOREACH(int64 n, vTimeOffsets)
printf("| nTimeOffset = %+"PRI64d" (%+"PRI64d" minutes)\n", nTimeOffset, nTimeOffset/60); printf("%+"PRI64d" ", n);
printf("| ");
}
printf("nTimeOffset = %+"PRI64d" (%+"PRI64d" minutes)\n", nTimeOffset, nTimeOffset/60);
} }
} }

Loading…
Cancel
Save