From 5553e668b20910ba10f0476979276ba093a7cac4 Mon Sep 17 00:00:00 2001 From: Matthew Johnson Date: Thu, 29 Aug 2024 20:05:04 -0400 Subject: [PATCH] adjust delay --- bin/atlas-agent.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/atlas-agent.cc b/bin/atlas-agent.cc index 253790c..9e98a94 100644 --- a/bin/atlas-agent.cc +++ b/bin/atlas-agent.cc @@ -162,7 +162,7 @@ long initial_polling_delay() { Logger()->debug("epoch={} step_boundary={} delay={}", epoch.count(), step_boundary, delay); if (delay < offset) { - return delay + offset; + return offset; } else if (delay > step_size - offset) { return 2 * offset; } else {