]> gitweb.ps.run Git - ps-cgit/blobdiff - cgit.c
Add and use cgit_find_stats_periodname() in print_repo()
[ps-cgit] / cgit.c
diff --git a/cgit.c b/cgit.c
index b0e202e723a78e0517bd35ed25efbf365f3212bc..93a7a69f78d2fa37aa86df19fb9d4c6724f2eaf0 100644 (file)
--- a/cgit.c
+++ b/cgit.c
@@ -491,6 +491,9 @@ void print_repo(FILE *f, struct cgit_repo *repo)
                fprintf(f, "repo.snapshots=%s\n", tmp);
                free(tmp);
        }
+       if (repo->max_stats != ctx.cfg.max_stats)
+               fprintf(f, "repo.max-stats=%s\n",
+                       cgit_find_stats_periodname(repo->max_stats));
        fprintf(f, "\n");
 }