FreeBSD Bugzilla – Attachment 181374 Details for
Bug 218283
[PATCH] sysutils/bsdstats: use anticongestion
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Use anticongestion instead of simply sleeping
bsdstats_anticongestiond.diff (text/plain), 1.11 KB, created by
Alan Somers
on 2017-04-01 04:45:42 UTC
(
hide
)
Description:
Use anticongestion instead of simply sleeping
Filename:
MIME Type:
Creator:
Alan Somers
Created:
2017-04-01 04:45:42 UTC
Size:
1.11 KB
patch
obsolete
>Index: sysutils/bsdstats/Makefile >=================================================================== >--- sysutils/bsdstats/Makefile (revision 437338) >+++ sysutils/bsdstats/Makefile (working copy) >@@ -3,7 +3,7 @@ > > PORTNAME= bsdstats > PORTVERSION= 6.0 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= sysutils > DISTFILES= > >Index: sysutils/bsdstats/files/300.statistics.in >=================================================================== >--- sysutils/bsdstats/files/300.statistics.in (revision 437338) >+++ sysutils/bsdstats/files/300.statistics.in (working copy) >@@ -494,8 +494,16 @@ > setup_proxies > test_connection > log "INIT" "Connected to ${checkin_server_description}" >- # sleep random number of seconds by default >- test X"$1" = X-nodelay || ${SLEEP} $(random) >+ # When non-interactive, sleep to reduce congestion on bsdstats.org >+ 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 >+ fi > # prepare > get_id_token > # begin
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Flags:
yuri
:
maintainer-approval+
Actions:
View
|
Diff
Attachments on
bug 218283
: 181374