chore: fix horizon

This commit is contained in:
andig 2026-04-21 16:07:11 +02:00
parent 087f9bb10b
commit 00216f46af

View file

@ -121,7 +121,7 @@ func (site *Site) optimizerUpdate(battery []types.Measurement) error {
}
// limit to 2 days for sake of performance
minLen = min(96, minLen)
minLen = min(2*96, minLen)
if expectedSlots := 8; minLen < expectedSlots {
if solarTariff != nil {