forked from lthn/blockchain
logs: less drama in time sync when it's pretty much ok
This commit is contained in:
parent
8ca969448a
commit
8a40f7b9fd
1 changed files with 1 additions and 1 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue