Skip to content

Commit

Permalink
Call updateSystemStats() in cron
Browse files Browse the repository at this point in the history
Do'h
  • Loading branch information
arp242 committed May 29, 2020
1 parent 0d0da48 commit c1ef643
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cron/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,10 @@ func UpdateStats(ctx context.Context, siteID int64, hits []goatcounter.Hit) erro
if err != nil {
return errors.Wrapf(err, "browser_stat: site %d", siteID)
}
err = updateSystemStats(ctx, hits)
if err != nil {
return errors.Wrapf(err, "browser_stat: site %d", siteID)
}
err = updateLocationStats(ctx, hits)
if err != nil {
return errors.Wrapf(err, "location_stat: site %d", siteID)
Expand Down

0 comments on commit c1ef643

Please sign in to comment.