diff options
| author | Joseph Henry <josephjah@gmail.com> | 2019-05-17 10:15:40 -0700 |
|---|---|---|
| committer | Joseph Henry <josephjah@gmail.com> | 2019-05-17 10:15:40 -0700 |
| commit | 90d324ae964fddf3355505d5d9651e75872f76b7 (patch) | |
| tree | d36ecd7b409d4d5ca5486effac5215d37c19f93b /node/Node.cpp | |
| parent | 4743ad0b16a72c00039de1aed98499fe0adf633f (diff) | |
| download | infinitytier-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.cpp | 2 |
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 ( ... ) { |
