]> git.pld-linux.org Git - packages/clamav.git/commitdiff
- avoid octal numbers
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 13 Oct 2009 09:41:46 +0000 (09:41 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    clamav-cron-updatedb -> 1.9

clamav-cron-updatedb

index 402c5b6f23a7c9c9f2d55c806eb0ae1daf0bf105..e194388c78866ebeda73d0df7761d72ebf60a93d 100644 (file)
@@ -9,7 +9,8 @@ fi
 
 hour=$(LC_ALL=C date '+%H')
 
-div=$((hour % $UPDATE_HOUR))
+div=$((hour % ${UPDATE_HOUR#0}))
+
 [ "$div" = "0" ] || exit 0
 
 # sleep random amount to avoid all servers hitting clamav servers at same time
This page took 0.069544 seconds and 4 git commands to generate.