diff options
author | erdgeist <> | 2008-11-28 22:21:10 +0000 |
---|---|---|
committer | erdgeist <> | 2008-11-28 22:21:10 +0000 |
commit | 334c6e4bbb97a4c0656e1b07c3e6a565f68eae2b (patch) | |
tree | f84ad28c39b32d0906e32e8ba5e461ecdaed7799 /ot_clean.h | |
parent | ff6c0339c13a6b42149ba91da14dbb824307cea7 (diff) |
The BIG refactoring [tm]. Too many changes to count them. If it doesn't suite you, revert to last version.
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 |