Hide Forgot
clamav-update contains the freshclam-sleep script, which inserts a host-specific sleep period before calling the freshclam utility. the period is given by (FRESHCLAM_DELAY % FRESHCLAM_MOD + FRESHCLAM_MOD) % FRESHCLAM_MOD which is the same as FRESHCLAM_DELAY % FRESHCLAM_MOD
commit 5b640654151f0a26c5554ac0418e99f8f173021b Author: ensc <ensc> Date: Thu Jul 28 12:06:36 2005 +0000 Fixed calculation of sleep duration; on some systems/IPs, `hostid` results in a negative number which is retained by the bash modulo-operation. So the sleep may get a negative number of seconds being interpreted as an option. This version makes sure that the module-operations returns a non-negative value. [BZ #164494, James Wilkinson]
ah, i see. that's the reason for the long formula: `hostid` may be negative. thank you.
May be you can add this information to sources as comment.