diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-03 00:04:10 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-03 00:04:10 +0000 |
commit | 1c63bc4c57bb27b305b1624a4c8e415ac914662b (patch) | |
tree | 1fc267d905974b6e9366a4f1712469ebacb94c74 /src/modules | |
parent | d6c30d18bd0bad1fcca19e04207abf240b9c1d99 (diff) |
Remove an obsolete value
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8800 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_spanningtree/main.cpp | 1 | ||||
-rw-r--r-- | src/modules/m_spanningtree/treeserver.cpp | 6 | ||||
-rw-r--r-- | src/modules/m_spanningtree/treeserver.h | 4 |
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; |