Make chunked transfers use gzip also
[opentracker.git] / ot_clean.h
blob956770ab6e48cf52d9a58b54bc6243efcc48fa29
1 /* This software was written by Dirk Engling <erdgeist@erdgeist.org>
2 It is considered beerware. Prost. Skol. Cheers or whatever.
4 $id$ */
6 #ifndef OT_CLEAN_H__
7 #define OT_CLEAN_H__
9 /* The amount of time a clean cycle should take */
10 #define OT_CLEAN_INTERVAL_MINUTES 2
12 /* So after each bucket wait 1 / OT_BUCKET_COUNT intervals */
13 #define OT_CLEAN_SLEEP ( ( ( OT_CLEAN_INTERVAL_MINUTES ) * 60 * 1000000 ) / ( OT_BUCKET_COUNT ) )
15 void clean_init( void );
16 void clean_deinit( void );
17 int clean_single_torrent( ot_torrent *torrent );
19 #endif