diff options
Diffstat (limited to 'node')
-rw-r--r-- | node/Cluster.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/node/Cluster.hpp b/node/Cluster.hpp index 13d9e2f5..01db3641 100644 --- a/node/Cluster.hpp +++ b/node/Cluster.hpp @@ -61,6 +61,11 @@ */ #define ZT_CLUSTER_MEMBER_MAX_PHYSICAL_ADDRS 8 +/** + * How frequently should doPeriodicTasks() be ideally called? (ms) + */ +#define ZT_CLUSTER_PERIODIC_TASK_DEADLINE 10 + namespace ZeroTier { class RuntimeEnvironment; @@ -238,7 +243,7 @@ public: void replicateCertificateOfNetworkMembership(const CertificateOfMembership &com); /** - * This should be called no less frequently than once every 10 seconds. + * Call every ~ZT_CLUSTER_PERIODIC_TASK_DEADLINE milliseconds. */ void doPeriodicTasks(); |