1
0
Fork 0
forked from lthn/blockchain

logs: less drama in time sync when it's pretty much ok

This commit is contained in:
sowle 2019-10-15 14:38:42 +03:00
parent 8ca969448a
commit 8a40f7b9fd
No known key found for this signature in database
GPG key ID: C07A24B2D89D49FC

View file

@ -789,7 +789,7 @@ namespace currency
std::vector<int64_t> time_deltas_copy(m_time_deltas.begin(), m_time_deltas.end());
m_last_median2local_time_difference = epee::misc_utils::median(time_deltas_copy);
LOG_PRINT_MAGENTA("TIME: network time difference is " << m_last_median2local_time_difference << " (max is " << TIME_SYNC_DELTA_TO_LOCAL_MAX_DIFFERENCE << ")", LOG_LEVEL_2);
LOG_PRINT_MAGENTA("TIME: network time difference is " << m_last_median2local_time_difference << " (max is " << TIME_SYNC_DELTA_TO_LOCAL_MAX_DIFFERENCE << ")", m_last_median2local_time_difference >= 3 ? LOG_LEVEL_2 : LOG_LEVEL_3);
if (std::abs(m_last_median2local_time_difference) > TIME_SYNC_DELTA_TO_LOCAL_MAX_DIFFERENCE)
{
int64_t ntp_time = tools::get_ntp_time();