diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Trim the comments and dead code across the tree
Diffstat (limited to '')
-rw-r--r--source/ui-stats.c8
1 file changed, 4 insertions, 4 deletions
diff --git a/source/ui-stats.c b/source/ui-stats.c
index 5b36f54..62aac56 100644
--- a/source/ui-stats.c
+++ b/source/ui-stats.c
@@ -149,10 +149,10 @@ static char *pretty_year(struct tm *tm)
* caps the page by storing an index into this table as its max-stats.
*/
static const struct cgit_period periods[] = {
- {'w', "week", 12, 4, trunc_week, dec_week, inc_week, pretty_week},
- {'m', "month", 12, 4, trunc_month, dec_month, inc_month, pretty_month},
- {'q', "quarter", 12, 4, trunc_quarter, dec_quarter, inc_quarter, pretty_quarter},
- {'y', "year", 12, 4, trunc_year, dec_year, inc_year, pretty_year},
+ {'w', "week", 4, trunc_week, dec_week, inc_week, pretty_week},
+ {'m', "month", 4, trunc_month, dec_month, inc_month, pretty_month},
+ {'q', "quarter", 4, trunc_quarter, dec_quarter, inc_quarter, pretty_quarter},
+ {'y', "year", 4, trunc_year, dec_year, inc_year, pretty_year},
};
static void window_start(const struct cgit_period *period, struct tm *tm)