From: Stefan Schantl Date: Sun, 29 Mar 2020 16:37:00 +0000 (+0200) Subject: ovpnclients.dat: Display traffic details in a human-readable format. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c727d89f43b6989ab26459ad1468c27ecb21f471;p=people%2Fstevee%2Fipfire-2.x.git ovpnclients.dat: Display traffic details in a human-readable format. Signed-off-by: Stefan Schantl --- diff --git a/html/cgi-bin/logs.cgi/ovpnclients.dat b/html/cgi-bin/logs.cgi/ovpnclients.dat index bb7bdfb7bb..b601fd292a 100755 --- a/html/cgi-bin/logs.cgi/ovpnclients.dat +++ b/html/cgi-bin/logs.cgi/ovpnclients.dat @@ -250,8 +250,8 @@ while(my @row = $statement_handle->fetchrow_array()) { my $connection_name = $row[0]; my $connection_open_time = $row[1]; my $connection_close_time = $row[2]; - my $connection_bytes_recieved = $row[3]; - my $connection_bytes_sent = $row[4]; + my $connection_bytes_recieved = &General::formatBytes($row[3]); + my $connection_bytes_sent = &General::formatBytes($row[4]); # Colorize columns. if ($lines % 2) {