summaryrefslogtreecommitdiff
path: root/node/NodeConfig.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-03-27 17:02:52 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-03-27 17:02:52 -0700
commitc231510f8b813eb73750f266dd18e836bc02d9cc (patch)
tree357db3b9f7a0fdf52fe739d1daf15b7ebbe3c307 /node/NodeConfig.cpp
parent2ac56fd120c3c9dd924fccc169beed2d51658ba9 (diff)
downloadinfinitytier-c231510f8b813eb73750f266dd18e836bc02d9cc.tar.gz
infinitytier-c231510f8b813eb73750f266dd18e836bc02d9cc.zip
More TCP-related fixes and tweaks to ping timing, resynchronize, and startup.
Diffstat (limited to 'node/NodeConfig.cpp')
-rw-r--r--node/NodeConfig.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/NodeConfig.cpp b/node/NodeConfig.cpp
index 30438fc6..e2b1d974 100644
--- a/node/NodeConfig.cpp
+++ b/node/NodeConfig.cpp
@@ -210,7 +210,7 @@ void NodeConfig::_doCommand(IpcConnection *ipcc,const char *commandLine)
// network environment changed and also less than ZT_PEER_LINK_ACTIVITY_TIMEOUT ago.
bool isOnline = false;
uint64_t now = Utils::now();
- uint64_t since = _r->timeOfLastNetworkEnvironmentChange;
+ uint64_t since = _r->timeOfLastResynchronize;
std::vector< SharedPtr<Peer> > snp(_r->topology->supernodePeers());
for(std::vector< SharedPtr<Peer> >::const_iterator sn(snp.begin());sn!=snp.end();++sn) {
uint64_t lastRec = (*sn)->lastDirectReceive();