mirror of
https://github.com/grafana/grafana.git
synced 2024-12-30 10:47:30 -06:00
only update usagestats every 30min (#31131)
Signed-off-by: bergquist <carl.bergquist@gmail.com>
This commit is contained in:
parent
4b25310941
commit
b5cbbc3db1
@ -55,7 +55,7 @@ func (uss *UsageStatsService) Run(ctx context.Context) error {
|
||||
uss.updateTotalStats()
|
||||
|
||||
onceEveryDayTick := time.NewTicker(time.Hour * 24)
|
||||
everyMinuteTicker := time.NewTicker(time.Minute)
|
||||
everyMinuteTicker := time.NewTicker(time.Minute * 30)
|
||||
defer onceEveryDayTick.Stop()
|
||||
defer everyMinuteTicker.Stop()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user