Skip to content

Commit

Permalink
chore: fix comment
Browse files Browse the repository at this point in the history
  • Loading branch information
andig committed Oct 23, 2023
1 parent 95c39a3 commit a3a15b8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/energy_metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a3a15b8

Please sign in to comment.