summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_spanningtree/main.cpp1
-rw-r--r--src/modules/m_spanningtree/treeserver.cpp6
-rw-r--r--src/modules/m_spanningtree/treeserver.h4
3 files changed, 3 insertions, 8 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp
index 496840489..56b208d2c 100644
--- a/src/modules/m_spanningtree/main.cpp
+++ b/src/modules/m_spanningtree/main.cpp
@@ -197,7 +197,6 @@ void ModuleSpanningTree::DoPingChecks(time_t curtime)
{
sock->WriteLine(std::string(":")+ServerInstance->Config->GetSID()+" PING "+serv->GetID());
serv->SetNextPingTime(curtime + Utils->PingFreq);
- serv->LastPing = curtime;
timeval t;
gettimeofday(&t, NULL);
long ts = (t.tv_sec * 1000) + (t.tv_usec / 1000);
diff --git a/src/modules/m_spanningtree/treeserver.cpp b/src/modules/m_spanningtree/treeserver.cpp
index 50b5d7949..af99a3f1d 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 = LastPing = 0;
+ 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 = LastPing = 0;
+ 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 = LastPing = 0;
+ 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/treeserver.h b/src/modules/m_spanningtree/treeserver.h
index 45bb8bb41..06e827fdc 100644
--- a/src/modules/m_spanningtree/treeserver.h
+++ b/src/modules/m_spanningtree/treeserver.h
@@ -113,10 +113,6 @@ class TreeServer : public classbase
*/
time_t NextPingTime();
- /** Time of last ping used to calculate this->rtt below
- */
- time_t LastPing;
-
/** Last ping time in microseconds, used to calculate round trip time
*/
unsigned long LastPingMsec;