#784 Fix bug in sample code.

This commit is contained in:
Auke Willem Oosterhoff 2016-03-03 14:14:09 +01:00
parent ed9937bbd8
commit 0abb1154ea
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ func (s *Simple) SampleConfig() string {
return "ok = true # indicate if everything is fine" return "ok = true # indicate if everything is fine"
} }
func (s *Simple) Gather(acc inputs.Accumulator) error { func (s *Simple) Gather(acc telegraf.Accumulator) error {
if s.Ok { if s.Ok {
acc.Add("state", "pretty good", nil) acc.Add("state", "pretty good", nil)
} else { } else {