From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH] media.cgi: Fix parsing output of iostat Date: Fri, 24 Sep 2021 10:14:50 +0100 Message-ID: <20210924091450.23865-1-michael.tremer@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1334996904664695154==" List-Id: --===============1334996904664695154== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Since the last update of sysstat, the output of iostat has changed and the web user interface showed wrong values. This is now being fixed in this patch. Signed-off-by: Michael Tremer --- html/cgi-bin/media.cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"; my $i=3D0; =20 --=20 2.31.0 --===============1334996904664695154==--