Update to 0.04.

Correctly apply the anticongestion sleep time.  Pointy hat to me for
copying too literally.

PR:		181556
Reported by:	asomers
This commit is contained in:
Matthew Seaman 2017-04-08 13:02:36 +00:00
parent bb6ea21714
commit fa0298b095
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=438042
2 changed files with 7 additions and 9 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= sa-utils
PORTVERSION= 0.03
PORTVERSION= 0.04
CATEGORIES= mail
MASTER_SITES= # none
DISTFILES= # none

View File

@ -142,14 +142,12 @@ case "$daily_sa_enable" in
;;
esac
if [ "$1" != -nodelay ]; then
# In FreeBSD 12.0 the anticongestion function should be used
# instead of a hard-coded sleep
if [ -n "$anticongestion_sleeptime" ]; then
anticongestion
else
${SLEEP} $(random)
fi
# In FreeBSD 12.0 the anticongestion function should be used
# instead of a hard-coded sleep
if [ -n "$anticongestion_sleeptime" ]; then
anticongestion
else
sleep $( jot -r 1 0 300 )
fi
update_rules || rc=$?