summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
author无闻 <u@gogs.io>2015-07-25 07:22:50 +0800
committer无闻 <u@gogs.io>2015-07-25 07:22:50 +0800
commitb838e949806b8b50b339d4a3fb0f08b873d74a83 (patch)
treec92a3f92161ce41bb7042fda96f8bdf019b5d9a1 /modules
parent752b52715205eb68cec5881529460da8644a5c3c (diff)
parent20a8d651f39eb138a8448257b0d8c5b4283ed6eb (diff)
downloadgitea-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.go1
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()
}