diff --git a/cmd/check_fritz/check_smart.go b/cmd/check_fritz/check_smart.go index e8cb3b4..91123b6 100644 --- a/cmd/check_fritz/check_smart.go +++ b/cmd/check_fritz/check_smart.go @@ -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