tor.cgi: Show number of connected relays.
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 31 Jul 2013 17:26:37 +0000 (19:26 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 31 Jul 2013 17:26:37 +0000 (19:26 +0200)
html/cgi-bin/tor.cgi

index 2ae9b6a..0c173e0 100644 (file)
@@ -509,10 +509,12 @@ END
 
                my @nodes = &TorORConnStatus($torctrl);
                if (@nodes) {
+                       my $nodes_length = scalar @nodes;
                        print <<END;
                                <table width='100%'>
                                        <tr>
-                                               <td colspan='3' class='base'><b>$Lang::tr{'tor connected relays'}</b></td>
+                                               <td width='40%' class='base'><b>$Lang::tr{'tor connected relays'}</b></td>
+                                               <td width='60%' colspan='2'>($nodes_length)</td>
                                        </tr>
 END