FreeBSD Bugzilla – Attachment 210761 Details for
Bug 229347
sysutils/bsdstats: Device reporting broken
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
tested patch in svn diff format
bsdstats.diff (text/plain), 1.25 KB, created by
Lorenzo Salvadore
on 2020-01-15 15:37:52 UTC
(
hide
)
Description:
tested patch in svn diff format
Filename:
MIME Type:
Creator:
Lorenzo Salvadore
Created:
2020-01-15 15:37:52 UTC
Size:
1.25 KB
patch
obsolete
>Index: sysutils/bsdstats/Makefile >=================================================================== >--- sysutils/bsdstats/Makefile (revision 522170) >+++ sysutils/bsdstats/Makefile (working copy) >@@ -3,7 +3,7 @@ > > PORTNAME= bsdstats > PORTVERSION= 6.0 >-PORTREVISION= 2 >+PORTREVISION= 3 > CATEGORIES= sysutils > DISTFILES= > >Index: sysutils/bsdstats/files/300.statistics.in >=================================================================== >--- sysutils/bsdstats/files/300.statistics.in (revision 522170) >+++ sysutils/bsdstats/files/300.statistics.in (working copy) >@@ -354,12 +354,15 @@ > FreeBSD|DragonFly) > local query_string="" > local line >- for line in $(${PCICONF} -l); do >+ while read line >+ do > local DRIVER=$(echo "${line}" | ${AWK} -F\@ '{print $1}') > local DEV=$(echo "${line}" | ${AWK} '{print $4}' | ${CUT} -c8-15) > local CLASS=$(echo "${line}" | ${AWK} '{print $2}' | ${CUT} -c9-14) > query_string=$query_string`echo \&dev[]=${DRIVER}:${DEV}:${CLASS}` >- done >+ done << EOT >+ $(${PCICONF} -l) >+EOT > > echo_begin "Posting device statistics to ${checkin_server_description}" > do_http_request_check_status "GET" "/scripts/report_devices.php?token=${TOKEN}&key=${KEY}$query_string" \
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
Actions:
View
|
Diff
Attachments on
bug 229347
:
206262
|
207059
|
210761
|
210806
|
211228
|
212035