summaryrefslogtreecommitdiff
path: root/trackerlogic.h
diff options
context:
space:
mode:
authorerdgeist <>2007-01-17 17:39:36 +0000
committererdgeist <>2007-01-17 17:39:36 +0000
commitc16330df6ac202197efa9964b7579b98e0571e0e (patch)
tree5cef472a5bd771534ee0d2085f73090d916e5b7c /trackerlogic.h
parent005ff4e2313da86eb01c939c1859b92608e181c7 (diff)
Simple top5 by peers/seeders table
Diffstat (limited to 'trackerlogic.h')
-rw-r--r--trackerlogic.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/trackerlogic.h b/trackerlogic.h
index 64953c6..a46869a 100644
--- a/trackerlogic.h
+++ b/trackerlogic.h
@@ -79,10 +79,12 @@ extern int g_closedtracker;
79extern int g_check_blacklist; 79extern int g_check_blacklist;
80#endif 80#endif
81 81
82enum { STATS_MRTG, STATS_TOP5 };
83
82ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer ); 84ot_torrent *add_peer_to_torrent( ot_hash *hash, ot_peer *peer );
83size_t return_peers_for_torrent( ot_torrent *torrent, unsigned int amount, char *reply ); 85size_t return_peers_for_torrent( ot_torrent *torrent, unsigned int amount, char *reply );
84size_t return_scrape_for_torrent( ot_hash *hash, char *reply ); 86size_t return_scrape_for_torrent( ot_hash *hash, char *reply );
85size_t return_stats_for_tracker( char *reply ); 87size_t return_stats_for_tracker( char *reply, int mode );
86void remove_peer_from_torrent( ot_hash *hash, ot_peer *peer ); 88void remove_peer_from_torrent( ot_hash *hash, ot_peer *peer );
87void cleanup_torrents( void ); 89void cleanup_torrents( void );
88 90