X-Git-Url: https://git.cameronkatri.com/cgit.git/blobdiff_plain/2ffeecb7a6827dcf0f81cf543ed312155f6e8f83..53bc747d311d18642fa3ad0cc0de34f3899ed1f4:/ui-stats.c diff --git a/ui-stats.c b/ui-stats.c index 36e17d9..f74dc33 100644 --- a/ui-stats.c +++ b/ui-stats.c @@ -23,21 +23,21 @@ static void trunc_week(struct tm *tm) { time_t t = timegm(tm); t -= ((tm->tm_wday + 6) % 7) * DAY_SECS; - gmtime_r(&t, tm); + gmtime_r(&t, tm); } static void dec_week(struct tm *tm) { time_t t = timegm(tm); t -= WEEK_SECS; - gmtime_r(&t, tm); + gmtime_r(&t, tm); } static void inc_week(struct tm *tm) { time_t t = timegm(tm); t += WEEK_SECS; - gmtime_r(&t, tm); + gmtime_r(&t, tm); } static char *pretty_week(struct tm *tm) @@ -153,7 +153,7 @@ int cgit_find_stats_period(const char *expr, struct cgit_period **period) if (periods[i].code == code || !strcmp(periods[i].name, expr)) { if (period) *period = &periods[i]; - return i+1; + return i + 1; } return 0; } @@ -239,7 +239,7 @@ struct string_list collect_stats(struct cgit_context *ctx, init_revisions(&rev, NULL); rev.abbrev = DEFAULT_ABBREV; rev.commit_format = CMIT_FMT_DEFAULT; - rev.no_merges = 1; + rev.max_parents = 1; rev.verbose_header = 1; rev.show_root_diff = 0; setup_revisions(argc, argv, &rev, NULL); @@ -407,7 +407,7 @@ void cgit_show_stats(struct cgit_context *ctx) html_intoption(50, "50", top); html_intoption(100, "100", top); html_intoption(-1, "all", top); - html("