summaryrefslogtreecommitdiff
path: root/ot_stats.c
diff options
context:
space:
mode:
authorerdgeist <>2007-12-05 01:40:24 +0000
committererdgeist <>2007-12-05 01:40:24 +0000
commitbee364a6f33694b4d58f29f0de5ad630d392a031 (patch)
treefb5c9355bb0e7bbccc3b8288dfadfdbd275e7bc0 /ot_stats.c
parent31d876d53dfdafc4370b7c23febbb6978b271a77 (diff)
/ can now be redirected to any URL
Diffstat (limited to 'ot_stats.c')
-rw-r--r--ot_stats.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/ot_stats.c b/ot_stats.c
index 32dcc91..8adb2bf 100644
--- a/ot_stats.c
+++ b/ot_stats.c
@@ -265,9 +265,10 @@ static size_t stats_peers_mrtg( char * reply ) {
265} 265}
266 266
267static size_t stats_httperrors_txt ( char * reply ) { 267static size_t stats_httperrors_txt ( char * reply ) {
268 return sprintf( reply, "400 ... %llu\n400 PAR %llu\n400 COM %llu\n403 IP %llu\n404 INV %llu\n500 SRV %llu\n", 268 return sprintf( reply, "302 RED %llu\n400 ... %llu\n400 PAR %llu\n400 COM %llu\n403 IP %llu\n404 INV %llu\n500 SRV %llu\n",
269 ot_failed_request_counts[0], ot_failed_request_counts[1], ot_failed_request_counts[2], 269 ot_failed_request_counts[0], ot_failed_request_counts[1], ot_failed_request_counts[2],
270 ot_failed_request_counts[3], ot_failed_request_counts[4], ot_failed_request_counts[5]); 270 ot_failed_request_counts[3], ot_failed_request_counts[4], ot_failed_request_counts[5],
271 ot_failed_request_counts[6] );
271} 272}
272 273
273size_t return_stats_for_tracker( char *reply, int mode, int format ) { 274size_t return_stats_for_tracker( char *reply, int mode, int format ) {