diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-02-08 10:03:01 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-02-08 10:03:01 -0800 |
| commit | 63ec7e58d413aa4066764a9818c77c016cd9b8ff (patch) | |
| tree | cee4a6e70f2747792d5bdbad1e7d19f47cdeb96c /node/Path.hpp | |
| parent | a963810e021c4e76d7f4e8958ff07a44eb07ed69 (diff) | |
| download | infinitytier-63ec7e58d413aa4066764a9818c77c016cd9b8ff.tar.gz infinitytier-63ec7e58d413aa4066764a9818c77c016cd9b8ff.zip | |
Make activity no longer a function of ping frequency, since this causes compatibility bugs when the latter was modified due to timer interactions with other versions.
Diffstat (limited to 'node/Path.hpp')
| -rw-r--r-- | node/Path.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Path.hpp b/node/Path.hpp index 668728e0..be64f334 100644 --- a/node/Path.hpp +++ b/node/Path.hpp @@ -127,7 +127,7 @@ public: inline bool active(uint64_t now) const throw() { - return (((now - _lastReceived) < ZT_PEER_ACTIVITY_TIMEOUT)&&(_probation < ZT_PEER_DEAD_PATH_DETECTION_MAX_PROBATION)); + return (((now - _lastReceived) < ZT_PATH_ACTIVITY_TIMEOUT)&&(_probation < ZT_PEER_DEAD_PATH_DETECTION_MAX_PROBATION)); } /** |
