-hour=$(LC_ALL=C date '+%k')
-
-div=$((hour % ${UPDATE_HOUR#0}))
-
-[ "$div" = "0" ] || exit 0
-
-# sleep random amount to avoid all servers hitting clamav servers at same time
-# but at most 1800 seconds (half hour)
-rand=${RANDOM:-$$}
-rand=$((rand % 1800))
-sleep $rand
+# sleep random period to avoid all servers hitting clamav servers at the same time,
+# but 1800 seconds (half an hour) at most
+sleep $((RANDOM % 1800))