Skip to content

Commit

Permalink
default the ticker to 15s
Browse files Browse the repository at this point in the history
  • Loading branch information
VinozzZ committed Feb 28, 2025
1 parent d94b7a0 commit 4bbf5f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func (agent *Agent) Stop(ctx context.Context) {

func (agent *Agent) healthCheck() {
//TODO: make this ticker configurable
timer := agent.clock.NewTicker(5 * time.Second)
timer := agent.clock.NewTicker(15 * time.Second)
for {
select {
case <-agent.ctx.Done():
Expand Down Expand Up @@ -226,7 +226,7 @@ func (agent *Agent) healthCheck() {
}

func (agent *Agent) usageReport() {
timer := agent.clock.NewTicker(5 * time.Second)
timer := agent.clock.NewTicker(15 * time.Second)
defer timer.Stop()

for {
Expand Down

0 comments on commit 4bbf5f0

Please sign in to comment.