Browse Source

Stats are tasks now.

dynamic-accesslists
erdgeist 17 years ago
parent
commit
edc73298f8
  1. 14
      ot_stats.c
  2. 1
      ot_stats.h

14
ot_stats.c

@ -242,19 +242,19 @@ static size_t stats_peers_mrtg( char * reply ) {
size_t return_stats_for_tracker( char *reply, int mode, int format ) { size_t return_stats_for_tracker( char *reply, int mode, int format ) {
format = format; format = format;
switch( mode ) { switch( mode ) {
case STATS_CONNS: case TASK_STATS_CONNS:
return stats_connections_mrtg( reply ); return stats_connections_mrtg( reply );
case STATS_UDP: case TASK_STATS_UDP:
return stats_udpconnections_mrtg( reply ); return stats_udpconnections_mrtg( reply );
case STATS_TCP: case TASK_STATS_TCP:
return stats_tcpconnections_mrtg( reply ); return stats_tcpconnections_mrtg( reply );
case STATS_PEERS: case TASK_STATS_PEERS:
return stats_peers_mrtg( reply ); return stats_peers_mrtg( reply );
case STATS_SLASH24S: case TASK_STATS_SLASH24S:
return stats_slash24s_txt( reply, 25, 16 ); return stats_slash24s_txt( reply, 25, 16 );
case STATS_TOP5: case TASK_STATS_TOP5:
return stats_top5_txt( reply ); return stats_top5_txt( reply );
case STATS_FULLSCRAPE: case TASK_STATS_FULLSCRAPE:
return stats_fullscrapes_mrtg( reply ); return stats_fullscrapes_mrtg( reply );
default: default:
return 0; return 0;

1
ot_stats.h

@ -4,7 +4,6 @@
#ifndef __OT_STATS_H__ #ifndef __OT_STATS_H__
#define __OT_STATS_H__ #define __OT_STATS_H__
enum { STATS_CONNS, STATS_PEERS, STATS_TOP5, STATS_TCP, STATS_UDP, STATS_SLASH24S, STATS_FULLSCRAPE };
typedef enum { typedef enum {
EVENT_ACCEPT, EVENT_ACCEPT,
EVENT_READ, EVENT_READ,

Loading…
Cancel
Save