]> git.ipfire.org Git - thirdparty/opentracker.git/commitdiff
Stats are tasks now.
authorerdgeist <>
Sun, 18 Nov 2007 16:45:34 +0000 (16:45 +0000)
committererdgeist <>
Sun, 18 Nov 2007 16:45:34 +0000 (16:45 +0000)
ot_stats.c
ot_stats.h

index 587155e4dc6133c09eb25b9cf2dde3535b6980ab..51b2985c60fc0d358240dc70f248e027b1ec4acd 100644 (file)
@@ -242,19 +242,19 @@ static size_t stats_peers_mrtg( char * reply ) {
 size_t return_stats_for_tracker( char *reply, int mode, int format ) {
   format = format;
   switch( mode ) {
-    case STATS_CONNS:
+    case TASK_STATS_CONNS:
       return stats_connections_mrtg( reply );
-    case STATS_UDP:
+    case TASK_STATS_UDP:
       return stats_udpconnections_mrtg( reply );
-    case STATS_TCP:
+    case TASK_STATS_TCP:
       return stats_tcpconnections_mrtg( reply );
-    case STATS_PEERS:
+    case TASK_STATS_PEERS:
       return stats_peers_mrtg( reply );
-    case STATS_SLASH24S:
+    case TASK_STATS_SLASH24S:
       return stats_slash24s_txt( reply, 25, 16 );
-    case STATS_TOP5:
+    case TASK_STATS_TOP5:
       return stats_top5_txt( reply );
-    case STATS_FULLSCRAPE:
+    case TASK_STATS_FULLSCRAPE:
       return stats_fullscrapes_mrtg( reply );
     default:
       return 0;
index a0c2a6b16b2d53405a0955d20aca72500cc8dc6e..1e603ad44b4a9b4524ed65f68743e28b5f11cd70 100644 (file)
@@ -4,7 +4,6 @@
 #ifndef __OT_STATS_H__
 #define __OT_STATS_H__
 
-enum { STATS_CONNS, STATS_PEERS, STATS_TOP5, STATS_TCP, STATS_UDP, STATS_SLASH24S, STATS_FULLSCRAPE };
 typedef enum {
   EVENT_ACCEPT,
   EVENT_READ,