mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
ovpnclients.dat: Align traffic values to the right side.
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
This commit is contained in:
committed by
Arne Fitzenreiter
parent
7b54c0fb7b
commit
b10612e8ba
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user