From 50b5c750cc01a1c14e7a1c159c96e7f3107b77f7 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Fri, 18 May 2012 08:34:35 +0000 Subject: [PATCH] Need more space for top100 --- ot_stats.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ot_stats.c b/ot_stats.c index 81343b8..010dec1 100644 --- a/ot_stats.c +++ b/ot_stats.c @@ -613,7 +613,10 @@ static void stats_make( int *iovec_entries, struct iovec **iovector, ot_tasktype case TASK_STATS_PEERS: r += stats_peers_mrtg( r ); break; case TASK_STATS_SLASH24S: r += stats_slash24s_txt( r, 128 ); break; case TASK_STATS_TOP10: r += stats_top_txt( r, 10 ); break; - case TASK_STATS_TOP100: r += stats_top_txt( r, 100 ); break; + case TASK_STATS_TOP100: + if( !( r = iovec_increase( iovec_entries, iovector, 4*OT_STATS_TMPSIZE ) ) ) + return; + r += stats_top_txt( r, 100 ); break; case TASK_STATS_EVERYTHING: r += stats_return_everything( r ); break; #ifdef WANT_SPOT_WOODPECKER case TASK_STATS_WOODPECKERS: r += stats_return_woodpeckers( r, 128 ); break;