From 49450cf07983ce4f4aa4926420b805d9b34f49ec Mon Sep 17 00:00:00 2001 From: PanNwt <72402991+PanNwt@users.noreply.github.com> Date: Sun, 18 Apr 2021 16:41:19 +0200 Subject: [PATCH] Always log 1 decimal (#890) Co-authored-by: PanNwt --- core/loadpoint.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/loadpoint.go b/core/loadpoint.go index 891cc5737..9d7def5ef 100644 --- a/core/loadpoint.go +++ b/core/loadpoint.go @@ -678,7 +678,7 @@ func (lp *LoadPoint) pvMaxCurrent(mode api.ChargeMode, sitePower float64) float6 deltaCurrent := powerToCurrent(-sitePower, lp.Phases) targetCurrent := math.Max(math.Min(effectiveCurrent+deltaCurrent, float64(lp.MaxCurrent)), 0) - lp.log.DEBUG.Printf("max charge current: %.2gA = %.2gA + %.2gA (%.0fW @ %dp)", targetCurrent, effectiveCurrent, deltaCurrent, sitePower, lp.Phases) + lp.log.DEBUG.Printf("max charge current: %.1fA = %.1fA + %.1fA (%.0fW @ %dp)", targetCurrent, effectiveCurrent, deltaCurrent, sitePower, lp.Phases) // in MinPV mode return at least minCurrent if mode == api.ModeMinPV && targetCurrent < float64(lp.MinCurrent) {