Skip to content

Commit

Permalink
windows grrr
Browse files Browse the repository at this point in the history
  • Loading branch information
powersj committed Jun 13, 2024
1 parent b648ccc commit ea8b5a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/win_perf_counters/win_perf_counters.go
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ func (m *WinPerfCounters) ParseConfig() error {
m.Sources = []string{"localhost"}
}

if len(m.Object) <= 0 {
if len(m.Object) == 0 {
err := errors.New("no performance objects configured")
return err
}
Expand Down

0 comments on commit ea8b5a6

Please sign in to comment.