chiark / gitweb /
log rtp timestamp updates (which shows that they are wrong)
[disorder] / server / rescan.c
index a2f26781386384568d730b3eef04738254dc546c..1171943467af0e0ec62c0008e96b72a0b0cfb9e5 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 */
@@ -306,7 +308,7 @@ int main(int argc, char **argv) {
   struct sigaction sa;
   
   set_progname(argv);
-  mem_init(1);
+  mem_init();
   if(!setlocale(LC_CTYPE, "")) fatal(errno, "error calling setlocale");
   while((n = getopt_long(argc, argv, "hVc:dD", options, 0)) >= 0) {
     switch(n) {