util: Allow use of C++14 chrono literals

This commit is contained in:
MarcoFalke
2020-12-08 16:49:33 +01:00
parent 16b31cc4c5
commit fa11110bff
4 changed files with 7 additions and 5 deletions

View File

@@ -4080,7 +4080,7 @@ bool PeerManager::SendMessages(CNode* pto)
// over since our last self-announcement, but there is only a small
// bandwidth cost that we can incur by doing this (which happens
// once a day on average).
if (pto->m_next_local_addr_send != std::chrono::microseconds::zero()) {
if (pto->m_next_local_addr_send != 0us) {
pto->m_addr_known->reset();
}
AdvertiseLocal(pto);