site statistics: update every 15min instead of hourly (#31091)

This commit is contained in:
andig 2026-06-22 16:50:21 +02:00 • committed by GitHub
parent 6d03b3e79c
commit de33d947c0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -29,7 +29,7 @@ func NewStats() *Stats {
// Update publishes stats based on charging sessions
func (s *Stats) Update(p publisher) {
if time.Since(s.updated) < time.Hour {
if time.Since(s.updated) < 15*time.Minute {
return
}