diff options
author | Lars Hjemli | 2008-12-07 13:17:21 +0100 |
---|---|---|
committer | Lars Hjemli | 2008-12-07 13:17:21 +0100 |
commit | fb2f3f6c29bad733723152893c5246a756e4cada (patch) | |
tree | 5b2953c0c116f276ca48beee676a6662b6329d95 /cgit.h | |
parent | c6a6aa2186daf39814baa0e71378c2e9e1041002 (diff) | |
download | cgit-fb2f3f6c29bad733723152893c5246a756e4cada.tar.gz cgit-fb2f3f6c29bad733723152893c5246a756e4cada.tar.bz2 cgit-fb2f3f6c29bad733723152893c5246a756e4cada.zip |
ui-stats: replace 'enable-stats' setting with 'max-stats'
The new 'max-stats' and 'repo.max-stats' settings makes it possible to
define the maximum statistics period, both globally and per repo. Hence,
it is now feasible to allow statistics on repositories with a high commit
frequency, like linux-2.6, by setting repo.max-stats to e.g. 'month'.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
Diffstat (limited to 'cgit.h')
-rw-r--r-- | cgit.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -61,7 +61,7 @@ struct cgit_repo { | |||
61 | int snapshots; | 61 | int snapshots; |
62 | int enable_log_filecount; | 62 | int enable_log_filecount; |
63 | int enable_log_linecount; | 63 | int enable_log_linecount; |
64 | int enable_stats; | 64 | int max_stats; |
65 | }; | 65 | }; |
66 | 66 | ||
67 | struct cgit_repolist { | 67 | struct cgit_repolist { |
@@ -153,13 +153,13 @@ struct cgit_config { | |||
153 | int enable_index_links; | 153 | int enable_index_links; |
154 | int enable_log_filecount; | 154 | int enable_log_filecount; |
155 | int enable_log_linecount; | 155 | int enable_log_linecount; |
156 | int enable_stats; | ||
157 | int local_time; | 156 | int local_time; |
158 | int max_repo_count; | 157 | int max_repo_count; |
159 | int max_commit_count; | 158 | int max_commit_count; |
160 | int max_lock_attempts; | 159 | int max_lock_attempts; |
161 | int max_msg_len; | 160 | int max_msg_len; |
162 | int max_repodesc_len; | 161 | int max_repodesc_len; |
162 | int max_stats; | ||
163 | int nocache; | 163 | int nocache; |
164 | int renamelimit; | 164 | int renamelimit; |
165 | int snapshots; | 165 | int snapshots; |