chiark / gitweb /
rescan reports progress every 1000 tracks
authorRichard Kettlewell <rjk@greenend.org.uk>
Sat, 25 Aug 2007 16:19:02 +0000 (17:19 +0100)
committerRichard Kettlewell <rjk@greenend.org.uk>
Sat, 25 Aug 2007 16:19:02 +0000 (17:19 +0100)
server/rescan.c

index 4c768a3..1171943 100644 (file)
@@ -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 */