diff options
Diffstat (limited to 'ot_clean.h')
-rw-r--r-- | ot_clean.h | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -6,10 +6,14 @@ | |||
6 | #ifndef __OT_CLEAN_H__ | 6 | #ifndef __OT_CLEAN_H__ |
7 | #define __OT_CLEAN_H__ | 7 | #define __OT_CLEAN_H__ |
8 | 8 | ||
9 | /* The amount of time a clean cycle should take */ | ||
10 | #define OT_CLEAN_INTERVAL_MINUTES 2 | ||
11 | |||
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 ) ) | ||
14 | |||
9 | void clean_init( void ); | 15 | void clean_init( void ); |
10 | void clean_deinit( void ); | 16 | void clean_deinit( void ); |
11 | |||
12 | void clean_all_torrents( void ); | ||
13 | int clean_single_torrent( ot_torrent *torrent ); | 17 | int clean_single_torrent( ot_torrent *torrent ); |
14 | 18 | ||
15 | #endif | 19 | #endif |