summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-16 12:10:57 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-16 12:10:57 -0700
commit738fa5a5e5fc99512465032aec5916867f70e86b (patch)
tree56aaa3a7d86cb99b6aa7c54c55c3ff1daa4bac29 /node
parentcc4d0199e7aa56d08e91dd9e21bbaba318afa8a4 (diff)
downloadinfinitytier-738fa5a5e5fc99512465032aec5916867f70e86b.tar.gz
infinitytier-738fa5a5e5fc99512465032aec5916867f70e86b.zip
.
Diffstat (limited to 'node')
-rw-r--r--node/Cluster.hpp7
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();