From a2fff685b5b8dea0dc753c059b275056728c5409 Mon Sep 17 00:00:00 2001 From: upstream svn Date: Sat, 15 May 2010 07:52:53 +0000 Subject: [PATCH] Upstream tarball 10159 --- .svn-revision | 2 +- src/kademlia/kademlia/Entry.cpp | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.svn-revision b/.svn-revision index 0d02a5ca..9c11cc09 100644 --- a/.svn-revision +++ b/.svn-revision @@ -1 +1 @@ -10158 +10159 diff --git a/src/kademlia/kademlia/Entry.cpp b/src/kademlia/kademlia/Entry.cpp index 9b8496dc..d116f14a 100644 --- a/src/kademlia/kademlia/Entry.cpp +++ b/src/kademlia/kademlia/Entry.cpp @@ -539,14 +539,18 @@ void CKeyEntry::ReadPublishTrackingDataFromFile(CFileDataIO* data) wxASSERT(m_publishingIPs == NULL); m_publishingIPs = new PublishingIPList(); uint32_t ipCount = data->ReadUInt32(); +#ifdef __WXDEBUG__ uint32_t dbgLastTime = 0; +#endif for (uint32_t i = 0; i < ipCount; i++) { sPublishingIP toAdd; toAdd.m_ip = data->ReadUInt32(); wxASSERT(toAdd.m_ip != 0); toAdd.m_lastPublish = data->ReadUInt32(); +#ifdef __WXDEBUG__ wxASSERT(dbgLastTime <= (uint32_t)toAdd.m_lastPublish); // should always be sorted oldest first dbgLastTime = toAdd.m_lastPublish; +#endif AdjustGlobalPublishTracking(toAdd.m_ip, true, wxEmptyString); -- 2.11.4.GIT