chore: minor

This commit is contained in:
andig 2025-11-30 13:40:35 +01:00
parent 0070476917
commit 1994dc20c8

View file

@ -536,7 +536,7 @@ func applySmartCostLimit(lp loadpoint.API, demand []float32, grid api.Rates, min
demand = make([]float32, minLen)
}
for i := 0; i < maxLen; i++ {
for i := range maxLen {
if grid[i].Value <= *costLimit {
demand[i] = float32(maxPower / slotsPerHour)
}