From e4ba53fd52e3731b61b0959722be44d86794206c Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Sat, 25 Aug 2007 17:19:02 +0100 Subject: [PATCH] rescan reports progress every 1000 tracks Organization: Straylight/Edgeware From: Richard Kettlewell --- server/rescan.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/rescan.c b/server/rescan.c index 4c768a3..1171943 100644 --- a/server/rescan.c +++ b/server/rescan.c @@ -155,6 +155,8 @@ static void rescan_collection(const struct collection *c) { if(n < config->player.n) { nnew += !!trackdb_notice(track, path); ++ntracks; + if(ntracks % 1000 == 0) + info("rescanning %s, %ld tracks so far", c->root, ntracks); } } /* tidy up */ -- [mdw]