[14/19] ovpnclients.dat: Align traffic values to the right side.

Message ID 20200413074550.2735-14-stefan.schantl@ipfire.org
State Accepted
Commit b10612e8baa3e0484310201165a26685c343d9ec
Headers
Series [01/19] openvpn: Add WUI page for client usage statistics |

Commit Message

Stefan Schantl April 13, 2020, 7:45 a.m. UTC
  Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 html/cgi-bin/logs.cgi/ovpnclients.dat | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
  

Patch

diff --git a/html/cgi-bin/logs.cgi/ovpnclients.dat b/html/cgi-bin/logs.cgi/ovpnclients.dat
index 62b91a054..002a393ad 100755
--- a/html/cgi-bin/logs.cgi/ovpnclients.dat
+++ b/html/cgi-bin/logs.cgi/ovpnclients.dat
@@ -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]);