summaryrefslogtreecommitdiff
path: root/node/Node.cpp
diff options
context:
space:
mode:
authorJoseph Henry <josephjah@gmail.com>2019-05-17 10:15:40 -0700
committerJoseph Henry <josephjah@gmail.com>2019-05-17 10:15:40 -0700
commit90d324ae964fddf3355505d5d9651e75872f76b7 (patch)
treed36ecd7b409d4d5ca5486effac5215d37c19f93b /node/Node.cpp
parent4743ad0b16a72c00039de1aed98499fe0adf633f (diff)
downloadinfinitytier-90d324ae964fddf3355505d5d9651e75872f76b7.tar.gz
infinitytier-90d324ae964fddf3355505d5d9651e75872f76b7.zip
Fixed ZT_SDK build issue. Moved ZT_SDK preprocessor directives to more permanent homes
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 ( ... ) {