summaryrefslogtreecommitdiff
path: root/ot_clean.h
diff options
context:
space:
mode:
Diffstat (limited to 'ot_clean.h')
-rw-r--r--ot_clean.h8
1 files changed, 6 insertions, 2 deletions
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 @@
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
9void clean_init( void ); 15void clean_init( void );
10void clean_deinit( void ); 16void clean_deinit( void );
11
12void clean_all_torrents( void );
13int clean_single_torrent( ot_torrent *torrent ); 17int clean_single_torrent( ot_torrent *torrent );
14 18
15#endif 19#endif