mirror of
https://git.zx2c4.com/cgit
synced 2025-08-31 06:59:28 +02:00
Add and use cgit_find_stats_periodname() in print_repo()
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
This commit is contained in:
parent
5ca8df0a3d
commit
b47b7bd1d0
3 changed files with 12 additions and 0 deletions
3
cgit.c
3
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");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue