diff options
author | erdgeist <> | 2007-11-18 16:45:34 +0000 |
---|---|---|
committer | erdgeist <> | 2007-11-18 16:45:34 +0000 |
commit | edc73298f8a51039e6525579024b573de2bf2ad6 (patch) | |
tree | 85a6dd2cefd280fae5d1cd0b91bd736ff565794b | |
parent | 4735b99db2562494c59fa47277ffd7dee3b44fc1 (diff) |
Stats are tasks now.
-rw-r--r-- | ot_stats.c | 14 | ||||
-rw-r--r-- | ot_stats.h | 1 |
2 files changed, 7 insertions, 8 deletions
@@ -242,19 +242,19 @@ static size_t stats_peers_mrtg( char * reply ) { | |||
242 | size_t return_stats_for_tracker( char *reply, int mode, int format ) { | 242 | size_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; |
@@ -4,7 +4,6 @@ | |||
4 | #ifndef __OT_STATS_H__ | 4 | #ifndef __OT_STATS_H__ |
5 | #define __OT_STATS_H__ | 5 | #define __OT_STATS_H__ |
6 | 6 | ||
7 | enum { STATS_CONNS, STATS_PEERS, STATS_TOP5, STATS_TCP, STATS_UDP, STATS_SLASH24S, STATS_FULLSCRAPE }; | ||
8 | typedef enum { | 7 | typedef enum { |
9 | EVENT_ACCEPT, | 8 | EVENT_ACCEPT, |
10 | EVENT_READ, | 9 | EVENT_READ, |