add func to autofix couters in repository

This commit is contained in:
Vitaliy Vasilenko 2015-03-21 14:55:00 +02:00
parent b6f8b486c7
commit 20a8d651f3
2 changed files with 38 additions and 0 deletions

View file

@ -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()
}