X-Git-Url: https://git.cameronkatri.com/cgit.git/blobdiff_plain/8f208794318f83826e98168b8b430f2d9a68bcce..3488d124052f5c3ddef303ed5306ad6a458794c1:/ui-stats.c diff --git a/ui-stats.c b/ui-stats.c index 52e9b91..84b247c 100644 --- a/ui-stats.c +++ b/ui-stats.c @@ -9,8 +9,6 @@ #define SZ_FMT "%zu" #endif -#define MONTHS 6 - struct authorstat { long total; struct string_list list; @@ -374,12 +372,11 @@ void cgit_show_stats(struct cgit_context *ctx) i = cgit_find_stats_period(code, &period); if (!i) { - cgit_print_error(fmt("Unknown statistics type: %c", code[0])); + cgit_print_error("Unknown statistics type: %c", code[0]); return; } if (i > ctx->repo->max_stats) { - cgit_print_error(fmt("Statistics type disabled: %s", - period->name)); + cgit_print_error("Statistics type disabled: %s", period->name); return; } authors = collect_stats(ctx, period);