Skip to content

Commit

Permalink
Merge pull request #30 from mcktr/bugfix/wrong-perfdata
Browse files Browse the repository at this point in the history
Fix wrong performance data value in socketpower
  • Loading branch information
mcktr authored Feb 22, 2019
2 parents 7e5354c + 6e53a88 commit 9575d26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/check_fritz/check_smart.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,13 @@ func CheckSmartSocketPower(aI ArgumentInformation) {
}

currentPower, err := strconv.ParseFloat(resp.NewMultimeterPower, 64)
perfData := perfdata.CreatePerformanceData("power", currentPower, "")

if HandleError(err) {
return
}

currentPower = currentPower / 100.0
perfData := perfdata.CreatePerformanceData("power", currentPower, "")

GlobalReturnCode = exitOk

Expand Down

0 comments on commit 9575d26

Please sign in to comment.