From 30cbbeb9ab2dc720dc04212f4aaee9ac01f1ddaf Mon Sep 17 00:00:00 2001 From: cryptozoidberg Date: Fri, 25 Oct 2019 01:04:30 +0200 Subject: [PATCH] fixed warning related to ? operator --- src/currency_protocol/currency_protocol_handler.inl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/currency_protocol/currency_protocol_handler.inl b/src/currency_protocol/currency_protocol_handler.inl index d9a36d8d..d1bc6347 100644 --- a/src/currency_protocol/currency_protocol_handler.inl +++ b/src/currency_protocol/currency_protocol_handler.inl @@ -789,7 +789,7 @@ namespace currency std::vector 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 << ")", m_last_median2local_time_difference >= 3 ? LOG_LEVEL_2 : LOG_LEVEL_3); + 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();