1
0
mirror of git://erdgeist.org/opentracker synced 2025-01-15 01:12:07 +00:00
opentracker/ot_clean.h

20 lines
557 B
C
Raw Normal View History

/* 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$ */
#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 );
2007-11-21 01:56:14 +00:00
int clean_single_torrent( ot_torrent *torrent );
#endif