summaryrefslogtreecommitdiff
path: root/ot_stats.c
diff options
context:
space:
mode:
authorerdgeist <>2007-11-18 16:45:34 +0000
committererdgeist <>2007-11-18 16:45:34 +0000
commitedc73298f8a51039e6525579024b573de2bf2ad6 (patch)
tree85a6dd2cefd280fae5d1cd0b91bd736ff565794b /ot_stats.c
parent4735b99db2562494c59fa47277ffd7dee3b44fc1 (diff)
Stats are tasks now.
Diffstat (limited to 'ot_stats.c')
-rw-r--r--ot_stats.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ot_stats.c b/ot_stats.c
index 587155e..51b2985 100644
--- a/ot_stats.c
+++ b/ot_stats.c
@@ -242,19 +242,19 @@ static size_t stats_peers_mrtg( char * reply ) {
242size_t return_stats_for_tracker( char *reply, int mode, int format ) { 242size_t return_stats_for_tracker( char *reply, int mode, int format ) {
243 format = format; 243 format = format;
244 switch( mode ) { 244 switch( mode ) {
245 case STATS_CONNS: 245 case TASK_STATS_CONNS:
246 return stats_connections_mrtg( reply ); 246 return stats_connections_mrtg( reply );
247 case STATS_UDP: 247 case TASK_STATS_UDP:
248 return stats_udpconnections_mrtg( reply ); 248 return stats_udpconnections_mrtg( reply );
249 case STATS_TCP: 249 case TASK_STATS_TCP:
250 return stats_tcpconnections_mrtg( reply ); 250 return stats_tcpconnections_mrtg( reply );
251 case STATS_PEERS: 251 case TASK_STATS_PEERS:
252 return stats_peers_mrtg( reply ); 252 return stats_peers_mrtg( reply );
253 case STATS_SLASH24S: 253 case TASK_STATS_SLASH24S:
254 return stats_slash24s_txt( reply, 25, 16 ); 254 return stats_slash24s_txt( reply, 25, 16 );
255 case STATS_TOP5: 255 case TASK_STATS_TOP5:
256 return stats_top5_txt( reply ); 256 return stats_top5_txt( reply );
257 case STATS_FULLSCRAPE: 257 case TASK_STATS_FULLSCRAPE:
258 return stats_fullscrapes_mrtg( reply ); 258 return stats_fullscrapes_mrtg( reply );
259 default: 259 default:
260 return 0; 260 return 0;