From 334c6e4bbb97a4c0656e1b07c3e6a565f68eae2b Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Fri, 28 Nov 2008 22:21:10 +0000 Subject: The BIG refactoring [tm]. Too many changes to count them. If it doesn't suite you, revert to last version. --- ot_clean.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'ot_clean.h') diff --git a/ot_clean.h b/ot_clean.h index 7fefddb..cb450c4 100644 --- a/ot_clean.h +++ b/ot_clean.h @@ -6,10 +6,14 @@ #ifndef __OT_CLEAN_H__ #define __OT_CLEAN_H__ +/* The amount of time a clean cycle should take */ +#define OT_CLEAN_INTERVAL_MINUTES 2 + +/* So after each bucket wait 1 / OT_BUCKET_COUNT intervals */ +#define OT_CLEAN_SLEEP ( ( ( OT_CLEAN_INTERVAL_MINUTES ) * 60 * 1000000 ) / ( OT_BUCKET_COUNT ) ) + void clean_init( void ); void clean_deinit( void ); - -void clean_all_torrents( void ); int clean_single_torrent( ot_torrent *torrent ); #endif -- cgit v1.2.3