Skip to content

Commit

Permalink
Only compile the sensors plugin if the 'sensors' tag is set
Browse files Browse the repository at this point in the history
  • Loading branch information
sparrc committed Jan 15, 2016
1 parent 963a942 commit 50334e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/inputs/sensors/sensors.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// +build linux
// +build linux,sensors

package sensors

Expand Down
3 changes: 3 additions & 0 deletions plugins/inputs/sensors/sensors_nocompile.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// +build !linux !sensors

package sensors
3 changes: 0 additions & 3 deletions plugins/inputs/sensors/sensors_notlinux.go

This file was deleted.

0 comments on commit 50334e6

Please sign in to comment.