Am 21.06.2013 13:28 schrieb Andreas Schulze: > Am 10.04.2013 15:05 schrieb Andreas Schulze: > > > symptom: freshclam needs 3..4 seconds to finish also in the case where *no* > > updates are available. > Thats worse because freshclam still steal cputime here :-(
I finaly found the relevant piece of code. Using the attached patch freshclam check the db only if there was really an update available. Maybe it could be an option in freshclam.conf Andreas -- Andreas Schulze Internetdienste | P252 DATEV eG 90329 Nürnberg | Telefon +49 911 319-0 | Telefax +49 911 319-3196 E-Mail info @datev.de | Internet www.datev.de Sitz: 90429 Nürnberg, Paumgartnerstr. 6-14 | Registergericht Nürnberg, GenReg Nr.70 Vorstand Prof. Dieter Kempf (Vorsitzender) Dipl.-Kfm. Wolfgang Stegmann (stellvertretender Vorsitzender) Dipl.-Kfm. Michael Leistenschneider Dipl.-Kfm. Dr. Robert Mayr Jörg Rabe v. Pappenheim Dipl.-Vw. Eckhard Schwarzer Vorsitzender des Aufsichtsrates: Reinhard Verholen
Index: clamav-0.98/freshclam/manager.c =================================================================== --- clamav-0.98.orig/freshclam/manager.c 2013-09-25 08:19:10.000000000 +0200 +++ clamav-0.98/freshclam/manager.c 2013-09-25 08:19:13.000000000 +0200 @@ -3087,7 +3087,7 @@ cli_rmdirs (updtmpdir); - if (checkdbdir () < 0) + if (updated && checkdbdir () < 0) { if (newver) free (newver);
_______________________________________________ Help us build a comprehensive ClamAV guide: https://github.com/vrtadmin/clamav-faq http://www.clamav.net/support/ml