Skip to content

Commit

Permalink
adjust delay
Browse files Browse the repository at this point in the history
  • Loading branch information
copperlight committed Aug 30, 2024
1 parent 390dc79 commit 5553e66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/atlas-agent.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5553e66

Please sign in to comment.