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 a97c93a commit 6284e20
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
### Features

### Bugfixes
- [#748](https://github.com/influxdata/telegraf/issues/748): Fix sensor plugin split on ":"

## v0.10.4.1

Expand Down
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 6284e20

Please sign in to comment.