summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ot_stats.c14
-rw-r--r--ot_stats.h1
2 files changed, 7 insertions, 8 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;
diff --git a/ot_stats.h b/ot_stats.h
index a0c2a6b..1e603ad 100644
--- a/ot_stats.h
+++ b/ot_stats.h
@@ -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
7enum { STATS_CONNS, STATS_PEERS, STATS_TOP5, STATS_TCP, STATS_UDP, STATS_SLASH24S, STATS_FULLSCRAPE };
8typedef enum { 7typedef enum {
9 EVENT_ACCEPT, 8 EVENT_ACCEPT,
10 EVENT_READ, 9 EVENT_READ,