2007-11-06 11:58:32 +00:00
|
|
|
/* This software was written by Dirk Engling <erdgeist@erdgeist.org>
|
2007-12-20 05:59:34 +00:00
|
|
|
It is considered beerware. Prost. Skol. Cheers or whatever.
|
2008-10-28 01:27:22 +00:00
|
|
|
|
2007-12-20 05:59:34 +00:00
|
|
|
$id$ */
|
2007-11-06 11:58:32 +00:00
|
|
|
|
2017-04-28 15:41:24 +02:00
|
|
|
#ifndef OT_CLEAN_H__
|
|
|
|
#define OT_CLEAN_H__
|
2007-11-06 11:58:32 +00:00
|
|
|
|
2008-11-28 22:21:10 +00:00
|
|
|
/* The amount of time a clean cycle should take */
|
2024-04-15 00:39:02 +02:00
|
|
|
#define OT_CLEAN_INTERVAL_MINUTES 2
|
2008-11-28 22:21:10 +00:00
|
|
|
|
|
|
|
/* So after each bucket wait 1 / OT_BUCKET_COUNT intervals */
|
2024-04-15 00:39:02 +02:00
|
|
|
#define OT_CLEAN_SLEEP (((OT_CLEAN_INTERVAL_MINUTES) * 60 * 1000000) / (OT_BUCKET_COUNT))
|
2008-11-28 22:21:10 +00:00
|
|
|
|
2024-04-15 00:39:02 +02:00
|
|
|
void clean_init(void);
|
|
|
|
void clean_deinit(void);
|
|
|
|
int clean_single_torrent(ot_torrent *torrent);
|
2007-11-06 11:58:32 +00:00
|
|
|
|
2007-11-06 12:03:11 +00:00
|
|
|
#endif
|