From a3a15b818d94a54f8067b2a83392199bab6c1b31 Mon Sep 17 00:00:00 2001 From: andig Date: Mon, 23 Oct 2023 20:57:36 +0200 Subject: [PATCH] chore: fix comment --- core/energy_metrics.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/energy_metrics.go b/core/energy_metrics.go index f45d6242df..06d7e40138 100644 --- a/core/energy_metrics.go +++ b/core/energy_metrics.go @@ -25,7 +25,8 @@ func (em *EnergyMetrics) SetEnvironment(greenShare float64, effPrice, effCo2 *fl em.currentCo2 = effCo2 } -// Update sets the a new value for the total amount of charged energy and updated metrics based on enviroment values. It returns the added totan and green energy +// Update sets the a new value for the total amount of charged energy and updated metrics based on environment values. +// It returns the added total and green energy. func (em *EnergyMetrics) Update(chargedKWh float64) (float64, float64) { added := chargedKWh - em.totalKWh // nothing changed or invalid lower value