diff options
author | matthew <matthew@FreeBSD.org> | 2017-04-08 21:02:36 +0800 |
---|---|---|
committer | matthew <matthew@FreeBSD.org> | 2017-04-08 21:02:36 +0800 |
commit | 4bf82c7f3ba2921061f6c7fec9a85f5bcacc4f9c (patch) | |
tree | e52839dda86befb9d4f33ef0655fe578e5da79cd /mail | |
parent | e44b5325965bf81fd60293bf83864c724602bc3f (diff) | |
download | freebsd-ports-gnome-4bf82c7f3ba2921061f6c7fec9a85f5bcacc4f9c.tar.gz freebsd-ports-gnome-4bf82c7f3ba2921061f6c7fec9a85f5bcacc4f9c.tar.zst freebsd-ports-gnome-4bf82c7f3ba2921061f6c7fec9a85f5bcacc4f9c.zip |
Update to 0.04.
Correctly apply the anticongestion sleep time. Pointy hat to me for
copying too literally.
PR: 181556
Reported by: asomers
Diffstat (limited to 'mail')
-rw-r--r-- | mail/sa-utils/Makefile | 2 | ||||
-rw-r--r-- | mail/sa-utils/files/sa-utils.in | 14 |
2 files changed, 7 insertions, 9 deletions
diff --git a/mail/sa-utils/Makefile b/mail/sa-utils/Makefile index b072646f7af0..452e1abfd1b4 100644 --- a/mail/sa-utils/Makefile +++ b/mail/sa-utils/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= sa-utils -PORTVERSION= 0.03 +PORTVERSION= 0.04 CATEGORIES= mail MASTER_SITES= # none DISTFILES= # none diff --git a/mail/sa-utils/files/sa-utils.in b/mail/sa-utils/files/sa-utils.in index 3dbf7e16a673..0e041b87ad95 100644 --- a/mail/sa-utils/files/sa-utils.in +++ b/mail/sa-utils/files/sa-utils.in @@ -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=$? |