diff options
-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, |