chore: minor (#29148)

This commit is contained in:
Soon5 2026-04-16 09:47:42 +02:00 • committed by GitHub
parent f126c8c70b
commit 9b58349204
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -654,7 +654,7 @@ func (site *Site) updateBatteryMeters() {
totalCapacity = lo.SumBy(mm, func(m types.Measurement) float64 { return *m.Capacity })
}
site.battery.Soc = batterySocAcc / totalCapacity
site.battery.Soc = math.Min(100, batterySocAcc/totalCapacity)
site.battery.Capacity = totalCapacity
site.battery.Power = lo.SumBy(mm, func(m types.Measurement) float64 {