Skip to content

Commit

Permalink
Related to influxdata#2554
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Salbert committed Jul 17, 2017
1 parent dbe2f79 commit e32afe7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions agent/agent.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,6 +360,12 @@ func (a *Agent) Run(shutdown chan struct{}) error {
a.Config.Agent.Interval.Duration, a.Config.Agent.Quiet,
a.Config.Agent.Hostname, a.Config.Agent.FlushInterval.Duration)

if int64(a.Config.Agent.Interval.Duration) <= 0 {
log.Printf("E! Wrong Interval value (%s) in agent configuration. Please set bigger value.\n",
a.Config.Agent.Interval.Duration)
return nil
}

// channel shared between all input threads for accumulating metrics
metricC := make(chan telegraf.Metric, 100)
aggC := make(chan telegraf.Metric, 100)
Expand Down

0 comments on commit e32afe7

Please sign in to comment.