summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorBrenton Bostick <[email protected]>2023-08-01 11:53:55 -0400
committerGitHub <[email protected]>2023-08-01 08:53:55 -0700
commite36127283cc58ac184a9d4497852a5ed8b9c515b (patch)
treef8397282fe5a11cb2efe0e022fb02fff87e422bd /node
parent230ae6bd164eeed8ade3fa247fb2f52bc1a5e9f6 (diff)
Fix typos (#2075)
Diffstat (limited to 'node')
-rw-r--r--node/Constants.hpp2
-rw-r--r--node/Node.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/node/Constants.hpp b/node/Constants.hpp
index 32492293..54995c29 100644
--- a/node/Constants.hpp
+++ b/node/Constants.hpp
@@ -299,7 +299,7 @@
/**
* Delay between checks of peer pings, etc., and also related housekeeping tasks
*/
-#define ZT_PING_CHECK_INVERVAL 5000
+#define ZT_PING_CHECK_INTERVAL 5000
/**
* How often the local.conf file is checked for changes (service, should be moved there)
diff --git a/node/Node.cpp b/node/Node.cpp
index d50905e4..e2d5f7bf 100644
--- a/node/Node.cpp
+++ b/node/Node.cpp
@@ -307,7 +307,7 @@ ZT_ResultCode Node::processBackgroundTasks(void *tptr,int64_t now,volatile int64
Mutex::Lock bl(_backgroundTasksLock);
// Process background bond tasks
- unsigned long bondCheckInterval = ZT_PING_CHECK_INVERVAL;
+ unsigned long bondCheckInterval = ZT_PING_CHECK_INTERVAL;
if (RR->bc->inUse()) {
bondCheckInterval = std::max(RR->bc->minReqMonitorInterval(), ZT_CORE_TIMER_TASK_GRANULARITY);
if ((now - _lastGratuitousPingCheck) >= ZT_CORE_TIMER_TASK_GRANULARITY) {
@@ -316,7 +316,7 @@ ZT_ResultCode Node::processBackgroundTasks(void *tptr,int64_t now,volatile int64
}
}
- unsigned long timeUntilNextPingCheck = _lowBandwidthMode ? (ZT_PING_CHECK_INVERVAL * 5) : ZT_PING_CHECK_INVERVAL;
+ unsigned long timeUntilNextPingCheck = _lowBandwidthMode ? (ZT_PING_CHECK_INTERVAL * 5) : ZT_PING_CHECK_INTERVAL;
const int64_t timeSinceLastPingCheck = now - _lastPingCheck;
if (timeSinceLastPingCheck >= timeUntilNextPingCheck) {
try {