Skip to content

Commit

Permalink
fix duplicated prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
matsubo committed Jul 1, 2024
1 parent a250eea commit b935103
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/apcupsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,6 @@ func (u APCUPSPlugin) FetchMetrics() (map[string]float64, error) {

// failsafe
func (u APCUPSPlugin) MetricKeyPrefix() string {
if u.prefix == "" {
u.prefix = "ups"
}
return u.prefix
}

Expand Down

0 comments on commit b935103

Please sign in to comment.