From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: [PATCH] media.cgi: Fix parsing output of iostat Date: Mon, 27 Sep 2021 19:43:52 +0100 Message-ID: <42A8899F-5998-4227-B0B2-DE5C8F4E2047@ipfire.org> In-Reply-To: <1b6278ae-43bd-70dd-c71d-da7f1f67fb2b@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8526559292699597245==" List-Id: --===============8526559292699597245== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Hello, No problem :) > On 25 Sep 2021, at 12:34, Adolf Belka wrote: >=20 > Acked-by: Adolf Belka >=20 > Sorry that I missed the change of output of iostat when I tested my sysstat= update patch. >=20 > Thanks for finding and fixing. >=20 > On 24/09/2021 11:14, Michael Tremer wrote: >> Since the last update of sysstat, the output of iostat has changed and >> the web user interface showed wrong values. >>=20 >> This is now being fixed in this patch. >>=20 >> Signed-off-by: Michael Tremer >> --- >> html/cgi-bin/media.cgi | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >>=20 >> diff --git a/html/cgi-bin/media.cgi b/html/cgi-bin/media.cgi >> index cc8f84d0a..af75d1bf3 100644 >> --- a/html/cgi-bin/media.cgi >> +++ b/html/cgi-bin/media.cgi >> @@ -135,8 +135,8 @@ END >> } >> close DF; >> my @iostat1 =3D qx(/usr/bin/iostat -dm -p | grep -v "Linux" | awk '{print= \$1}'); >> -my @iostat2 =3D qx(/usr/bin/iostat -dm -p | grep -v "Linux" | awk '{print= \$5}'); >> -my @iostat3 =3D qx(/usr/bin/iostat -dm -p | grep -v "Linux" | awk '{print= \$6}'); >> +my @iostat2 =3D qx(/usr/bin/iostat -dm -p | grep -v "Linux" | awk '{print= \$6}'); >> +my @iostat3 =3D qx(/usr/bin/iostat -dm -p | grep -v "Linux" | awk '{print= \$7}'); >> print " \n

transfers<= /h3>"; >> my $i=3D0; >> =20 >=20 > --=20 > Sent from my laptop --===============8526559292699597245==--