Skip to content

Commit

Permalink
Fix sensor plugin, was splitting on ":" incorrectly
Browse files Browse the repository at this point in the history
closes #748
  • Loading branch information
sparrc committed Feb 26, 2016
1 parent 6648163 commit 19139f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/sensors/sensors.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (s *Sensors) Gather(acc telegraf.Accumulator) error {
var found bool

for _, sensor := range s.Sensors {
parts := strings.SplitN(":", sensor, 2)
parts := strings.SplitN(sensor, ":", 2)

if parts[0] == chipName {
if parts[1] == "*" || parts[1] == featureLabel {
Expand Down

0 comments on commit 19139f3

Please sign in to comment.