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