Unidiff1 files changed, 0 insertions, 2 deletions
|
|
|
@@ -1,26 +1,24 @@ |
1 | #include <string-list.h> |
| |
2 | |
| |
3 | #include "cgit.h" |
1 | #include "cgit.h" |
4 | #include "html.h" |
2 | #include "html.h" |
5 | #include "ui-shared.h" |
3 | #include "ui-shared.h" |
6 | #include "ui-stats.h" |
4 | #include "ui-stats.h" |
7 | |
5 | |
8 | #ifdef NO_C99_FORMAT |
6 | #ifdef NO_C99_FORMAT |
9 | #define SZ_FMT "%u" |
7 | #define SZ_FMT "%u" |
10 | #else |
8 | #else |
11 | #define SZ_FMT "%zu" |
9 | #define SZ_FMT "%zu" |
12 | #endif |
10 | #endif |
13 | |
11 | |
14 | #define MONTHS 6 |
12 | #define MONTHS 6 |
15 | |
13 | |
16 | struct authorstat { |
14 | struct authorstat { |
17 | long total; |
15 | long total; |
18 | struct string_list list; |
16 | struct string_list list; |
19 | }; |
17 | }; |
20 | |
18 | |
21 | #define DAY_SECS (60 * 60 * 24) |
19 | #define DAY_SECS (60 * 60 * 24) |
22 | #define WEEK_SECS (DAY_SECS * 7) |
20 | #define WEEK_SECS (DAY_SECS * 7) |
23 | |
21 | |
24 | static void trunc_week(struct tm *tm) |
22 | static void trunc_week(struct tm *tm) |
25 | { |
23 | { |
26 | time_t t = timegm(tm); |
24 | time_t t = timegm(tm); |
|