summaryrefslogtreecommitdiff
path: root/trackerlogic.c
diff options
context:
space:
mode:
Diffstat (limited to 'trackerlogic.c')
-rw-r--r--trackerlogic.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/trackerlogic.c b/trackerlogic.c
index 735041e..6274c41 100644
--- a/trackerlogic.c
+++ b/trackerlogic.c
@@ -162,7 +162,7 @@ void return_peers_for_torrent( ot_torrent torrent, unsigned long amount, char *r
162 162
163// Compacts a torrents peer list 163// Compacts a torrents peer list
164// * torrents older than OT_TIMEOUT are being kicked 164// * torrents older than OT_TIMEOUT are being kicked
165// * is rather expansive 165// * is rather expensive
166// * if this fails, torrent file is invalid, should add flag 166// * if this fails, torrent file is invalid, should add flag
167// 167//
168void heal_torrent( ot_torrent torrent ) { 168void heal_torrent( ot_torrent torrent ) {
@@ -269,7 +269,7 @@ int init_logic( char *directory ) {
269 269
270 // Scan directory for filenames in the form [0-9A-F]{20} 270 // Scan directory for filenames in the form [0-9A-F]{20}
271 // * I know this looks ugly, but I've seen A-F to match umlauts as well in strange locales 271 // * I know this looks ugly, but I've seen A-F to match umlauts as well in strange locales
272 // * lower case for .. better being safe than sorry, this is not expansive here :) 272 // * lower case for .. better being safe than sorry, this is not expensive here :)
273 if( !glob( 273 if( !glob(
274 "[0-9ABCDEFabcdef][0-9ABCDEFabcdef][0-9ABCDEFabcdef][0-9ABCDEFabcdef]" 274 "[0-9ABCDEFabcdef][0-9ABCDEFabcdef][0-9ABCDEFabcdef][0-9ABCDEFabcdef]"
275 "[0-9ABCDEFabcdef][0-9ABCDEFabcdef][0-9ABCDEFabcdef][0-9ABCDEFabcdef]" 275 "[0-9ABCDEFabcdef][0-9ABCDEFabcdef][0-9ABCDEFabcdef][0-9ABCDEFabcdef]"