From patchwork Fri Sep 24 09:14:50 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 4729 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4HG5wQ4J8Sz3x1J for ; Fri, 24 Sep 2021 09:15:18 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail02.haj.ipfire.org", Issuer "R3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4HG5wP36d9z61V; Fri, 24 Sep 2021 09:15:17 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4HG5wP1Dtbz2yl3; Fri, 24 Sep 2021 09:15:17 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384 client-signature ECDSA (P-384) client-digest SHA384) (Client CN "mail01.haj.ipfire.org", Issuer "R3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4HG5wM0phNz2xlk for ; Fri, 24 Sep 2021 09:15:15 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by mail01.ipfire.org (Postfix) with ESMTPSA id 4HG5wL1cy8zHt; Fri, 24 Sep 2021 09:15:14 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1632474914; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=TB/rtMBYEfMekCuGLd3hviRN8laY++u/J0JteV2forY=; b=uOXf4mLg6nrnUB3e/cxpcwNiguX6EA8h0KYY9bwjywx1148iVFG+6O8uvljiCAM70BY8W/ UOUa+mappaBL9RDQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1632474914; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=TB/rtMBYEfMekCuGLd3hviRN8laY++u/J0JteV2forY=; b=ZEHG0lDMecf8vi++P198ycT+xsyMWfxwNEmE0xLe8rY8Q8+56ra9AaDG75HcRWgSPsaU+z 88GIhPHKMmTKiPj/9d63mbnueh9CFCjQPbCwMFF3YeXvCvUvx25t3IIQAxmSlPtrrC1NjQ 76f3az//7h6Kx3tMVloatzKUdf894RQyXtXM7Y4Bc+QzZj9Eu47aAKaSnJX0TnZTi4Zbdf h8YBVV1gLvsK+SB9EDIpYbNSvHvV6PXo+87ezeHYdc38tq7Y0iMzdh60gZMpV8J0V92AQa L6S8ihiNg7PnPEpIXES3C+CA9M6y5C90kZ/+IeioderlkdRtOemsNEqif5o8aA== 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 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" 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 Acked-by: Adolf Belka --- 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 = qx(/usr/bin/iostat -dm -p | grep -v "Linux" | awk '{print \$1}'); -my @iostat2 = qx(/usr/bin/iostat -dm -p | grep -v "Linux" | awk '{print \$5}'); -my @iostat3 = qx(/usr/bin/iostat -dm -p | grep -v "Linux" | awk '{print \$6}'); +my @iostat2 = qx(/usr/bin/iostat -dm -p | grep -v "Linux" | awk '{print \$6}'); +my @iostat3 = qx(/usr/bin/iostat -dm -p | grep -v "Linux" | awk '{print \$7}'); print " \n

transfers

"; my $i=0;