diff options
author | 无闻 <u@gogs.io> | 2015-07-25 07:22:50 +0800 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2015-07-25 07:22:50 +0800 |
commit | b838e949806b8b50b339d4a3fb0f08b873d74a83 (patch) | |
tree | c92a3f92161ce41bb7042fda96f8bdf019b5d9a1 /modules | |
parent | 752b52715205eb68cec5881529460da8644a5c3c (diff) | |
parent | 20a8d651f39eb138a8448257b0d8c5b4283ed6eb (diff) | |
download | gitea-b838e949806b8b50b339d4a3fb0f08b873d74a83.tar.gz gitea-b838e949806b8b50b339d4a3fb0f08b873d74a83.zip |
Merge pull request #1111 from vitalvas/develop
Add function in cron to autofix counters in repository
Diffstat (limited to 'modules')
-rw-r--r-- | modules/cron/manager.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/cron/manager.go b/modules/cron/manager.go index 2990ab0604..91ae16be27 100644 --- a/modules/cron/manager.go +++ b/modules/cron/manager.go @@ -19,6 +19,7 @@ func NewCronContext() { if setting.Git.Fsck.Enable { c.AddFunc("Repository health check", fmt.Sprintf("@every %dh", setting.Git.Fsck.Interval), models.GitFsck) } + c.AddFunc("Check repository statistics", "@every 24h", models.CheckRepoStats) c.Start() } |