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:
parent
bb6ea21714
commit
fa0298b095
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=438042
@ -2,7 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= sa-utils
|
||||
PORTVERSION= 0.03
|
||||
PORTVERSION= 0.04
|
||||
CATEGORIES= mail
|
||||
MASTER_SITES= # none
|
||||
DISTFILES= # none
|
||||
|
@ -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=$?
|
||||
|
Loading…
Reference in New Issue
Block a user