From bb1c5d28056647f12883b83d6a1cea2ad3e6bbab Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Mon, 3 Nov 2008 01:26:38 +0000 Subject: Add stats about when peers renew their announces. --- ot_stats.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'ot_stats.c') diff --git a/ot_stats.c b/ot_stats.c index 5d9dab2..5427f1f 100644 --- a/ot_stats.c +++ b/ot_stats.c @@ -46,6 +46,7 @@ static unsigned long long ot_full_scrape_count = 0; static unsigned long long ot_full_scrape_request_count = 0; static unsigned long long ot_full_scrape_size = 0; static unsigned long long ot_failed_request_counts[CODE_HTTPERROR_COUNT]; +static unsigned long long ot_renewed[OT_POOLS_COUNT]; static time_t ot_start_time; @@ -492,6 +493,15 @@ static size_t stats_httperrors_txt ( char * reply ) { ot_failed_request_counts[6] ); } +static size_t stats_return_renew_bucket( char * reply ) { + char *r = reply; + int i; + + for( i=0; i