From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schantl To: development@lists.ipfire.org Subject: [PATCH 05/19] ovpnclients.dat: Display traffic details in a human-readable format. Date: Mon, 13 Apr 2020 09:45:36 +0200 Message-ID: <20200413074550.2735-5-stefan.schantl@ipfire.org> In-Reply-To: <20200413074550.2735-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4869161917416754241==" List-Id: --===============4869161917416754241== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Signed-off-by: Stefan Schantl --- html/cgi-bin/logs.cgi/ovpnclients.dat | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/cgi-bin/logs.cgi/ovpnclients.dat b/html/cgi-bin/logs.cgi/ov= pnclients.dat index bb7bdfb7b..b601fd292 100755 --- a/html/cgi-bin/logs.cgi/ovpnclients.dat +++ b/html/cgi-bin/logs.cgi/ovpnclients.dat @@ -250,8 +250,8 @@ while(my @row =3D $statement_handle->fetchrow_array()) { my $connection_name =3D $row[0]; my $connection_open_time =3D $row[1]; my $connection_close_time =3D $row[2]; - my $connection_bytes_recieved =3D $row[3]; - my $connection_bytes_sent =3D $row[4]; + my $connection_bytes_recieved =3D &General::formatBytes($row[3]); + my $connection_bytes_sent =3D &General::formatBytes($row[4]); =20 # Colorize columns.=20 if ($lines % 2) { --=20 2.26.0 --===============4869161917416754241==--