summaryrefslogtreecommitdiff
path: root/node/Node.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2019-06-06 10:04:11 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2019-06-06 10:04:11 -0700
commit848f822171a41f78eef7ee0dcab99a6ec53d634a (patch)
tree12db6945a5bfa798c00a98f6a2b915f42bc7f56c /node/Node.cpp
parentcacdb445c786f97d5d9af200b17665bb171a42d9 (diff)
parentd4199ddb3ef59b8f754129bfc91f91c18f84759c (diff)
downloadinfinitytier-848f822171a41f78eef7ee0dcab99a6ec53d634a.tar.gz
infinitytier-848f822171a41f78eef7ee0dcab99a6ec53d634a.zip
.
Diffstat (limited to 'node/Node.cpp')
-rw-r--r--node/Node.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Node.cpp b/node/Node.cpp
index ffa4a700..c9f38ad3 100644
--- a/node/Node.cpp
+++ b/node/Node.cpp
@@ -340,7 +340,7 @@ ZT_ResultCode Node::processBackgroundTasks(void *tptr,int64_t now,volatile int64
// Update online status, post status change as event
const bool oldOnline = _online;
- _online = (((now - lastReceivedFromUpstream) < (ZT_PEER_ACTIVITY_TIMEOUT / (ZT_SDK ? 16 : 1)))||(RR->topology->amUpstream()));
+ _online = (((now - lastReceivedFromUpstream) < ZT_PEER_ACTIVITY_TIMEOUT)||(RR->topology->amUpstream()));
if (oldOnline != _online)
postEvent(tptr,_online ? ZT_EVENT_ONLINE : ZT_EVENT_OFFLINE);
} catch ( ... ) {