]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
ovpnclients.dat: Align traffic values to the right side.
authorStefan Schantl <stefan.schantl@ipfire.org>
Mon, 13 Apr 2020 07:45:45 +0000 (09:45 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Fri, 1 May 2020 19:14:58 +0000 (19:14 +0000)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
html/cgi-bin/logs.cgi/ovpnclients.dat

index 62b91a0540e593c88af78a75834f8cc317bdc784..002a393ad80f939fd26ff4c46123b8eef5e19c93 100755 (executable)
@@ -262,8 +262,8 @@ my $col = "bgcolor='$color{'color20'}'";
        if ($cgiparams{'CONNECTION_NAME'}) {
                print "<td width='20%' $col><b>$Lang::tr{'connected'}</b></td>\n";
                print "<td width='20%' $col><b>$Lang::tr{'disconnected'}</b></td>\n";
-               print "<td width='10%' $col><b>$Lang::tr{'received'}</b></td>\n";
-               print "<td width='10%' $col><b>$Lang::tr{'sent'}</b></td>\n";
+               print "<td width='10%' align='right' $col><b>$Lang::tr{'received'}</b></td>\n";
+               print "<td width='10%' align='right' $col><b>$Lang::tr{'sent'}</b></td>\n";
        } else {
                print "<td $col><b>$Lang::tr{'total connection time'}</b>\n";
        }
@@ -293,8 +293,8 @@ unless ($errormessage) {
                if ($cgiparams{'CONNECTION_NAME'}) {
                        print "<td width='20%' $col>$connection_open_time</td>\n";
                        print "<td width='20%' $col>$connection_close_time</td>\n";
-                       print "<td width='10%' $col>$connection_bytes_recieved</td>\n";
-                       print "<td width='10%' $col>$connection_bytes_sent</td>\n";
+                       print "<td width='10%' align='right' $col>$connection_bytes_recieved</td>\n";
+                       print "<td width='10%' align='right' $col>$connection_bytes_sent</td>\n";
                } else {
                        # Convert total connection time into human-readable format.
                        my $total_time = &General::format_time($row[1]);