diff options
-rw-r--r-- | src/modules/m_spanningtree/treeserver.cpp | 6 | ||||
-rw-r--r-- | src/modules/m_spanningtree/treesocket2.cpp | 5 |
2 files changed, 6 insertions, 5 deletions
diff --git a/src/modules/m_spanningtree/treeserver.cpp b/src/modules/m_spanningtree/treeserver.cpp index af99a3f1d..7c4287b4d 100644 --- a/src/modules/m_spanningtree/treeserver.cpp +++ b/src/modules/m_spanningtree/treeserver.cpp @@ -31,7 +31,7 @@ TreeServer::TreeServer(SpanningTreeUtilities* Util, InspIRCd* Instance, const st ServerDesc.clear(); VersionString.clear(); ServerUserCount = ServerOperCount = 0; - rtt = 0; + StartBurst = rtt = 0; Warned = Hidden = DupError = false; VersionString = ServerInstance->GetVersionString(); SetID(id); @@ -50,7 +50,7 @@ TreeServer::TreeServer(SpanningTreeUtilities* Util, InspIRCd* Instance, std::str VersionString = ServerInstance->GetVersionString(); Route = NULL; Socket = NULL; /* Fix by brain */ - rtt = 0; + StartBurst = rtt = 0; Warned = Hidden = DupError = false; AddHashEntry(); SetID(id); @@ -68,7 +68,7 @@ TreeServer::TreeServer(SpanningTreeUtilities* Util, InspIRCd* Instance, std::str this->SetNextPingTime(time(NULL) + Utils->PingFreq); this->SetPingFlag(); DupError = false; - rtt = 0; + StartBurst = rtt = 0; /* find the 'route' for this server (e.g. the one directly connected * to the local server, which we can use to reach it) * diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index 88cdf846d..4e058b416 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -1178,6 +1178,7 @@ bool TreeSocket::ProcessLine(std::string &line) gettimeofday(&t, NULL); long ts = (t.tv_sec * 1000) + (t.tv_usec / 1000); Node->StartBurst = ts; + this->Instance->Log(DEBUG, "Started bursting at time %lu", ts); this->DoBurst(Node); } else if (command == "ERROR") @@ -1517,8 +1518,8 @@ bool TreeSocket::ProcessLine(std::string &line) gettimeofday(&t, NULL); long ts = (t.tv_sec * 1000) + (t.tv_usec / 1000); unsigned long bursttime = ts - ServerSource->StartBurst; - this->Instance->SNO->WriteToSnoMask('l', "Received end of netburst from \2%s\2 (burst time: %ul ms)", sourceserv.c_str(), bursttime); - + this->Instance->SNO->WriteToSnoMask('l', "Received end of netburst from \2%s\2 (burst time: %lu ms)", sourceserv.c_str(), bursttime); + this->Instance->Log(DEBUG, "Ended bursting at %lu (ts: %lu, startburst: %lu)", bursttime, ts, ServerSource->StartBurst); Event rmode((char*)sourceserv.c_str(), (Module*)Utils->Creator, "new_server"); rmode.Send(Instance); |