]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - html/cgi-bin/logs.cgi/ovpnclients.dat
ovpnclients.dat: Display traffic details in a human-readable format.
[ipfire-2.x.git] / html / cgi-bin / logs.cgi / ovpnclients.dat
index bb7bdfb7bb4d2080c6dbfddfcf276c9bf8ceeb10..b601fd292a96c226e6a4d64faa6be4293c7cb57d 100755 (executable)
@@ -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) {