Mailing List archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[vdr] Stop ScanVideoDir from traversing too much
Hi Klaus,
When I have the file size maximum set at 100 MB, this creates a lot of
files. Traversing 100 GB of these files means that a 60 second watchdog
will restart vdr. To prevent that, the following prevents traversing .del
directories when we are searching for .rec and vice versa. This cuts the
time needed to a couple of seconds.
Could this be included in 1.3?
Jaakko
diff -ru old/vdr-1.3.19/recording.c vdr-1.3.19/recording.c
--- old/vdr-1.3.19/recording.c 2004-12-26 13:55:24.000000000 +0200
+++ vdr-1.3.19/recording.c 2005-01-28 12:07:57.000000000 +0200
@@ -654,8 +654,10 @@
else
delete r;
}
- else
- ScanVideoDir(buffer);
+ else {
+ if (!endswith(buffer, deleted ? RECEXT : DELEXT))
+ ScanVideoDir(buffer);
+ }
}
}
free(buffer);
--
Foreca Ltd Jaakko.Hyvatti@foreca.com
Pursimiehenkatu 29-31 B, FIN-00150 Helsinki, Finland http://www.foreca.com
Home |
Main Index |
Thread Index