StringBuffer output = new StringBuffer();
if (RoutingTable.getRoutingTable().getPeers().size() > 0) {
output.append("<table border=\"1\"><tr>" + "<th>Peer</th>" + "<th>Port</th>" + "<th>Build</th>"
+ "<th>Throttle</th>" + "</tr>");
for (Iterator i = RoutingTable.getRoutingTable().getPeers().iterator(); i.hasNext();) {
Peer p = (Peer) i.next();
RoutingTable.PeerInfo pi = RoutingTable.getRoutingTable().getPeerInfo(p);
if (p != null) {
if (Dijjer.getDijjer().getSeedNodes().contains(p)) {
output.append("<tr><td><font color=\"green\">" + p.getAddress().getHostName()
+ "</font></td><td><font color=\"green\">" + p.getPort() + "</font></td>");
} else {
output.append("<tr><td>" + p.getAddress().getHostName() + "</td><td>" + p.getPort() + "</td>");
}
if (pi != null) {
output.append("<td>" + pi.getBuild() + "</td>");
} else {
output.append("<td>Unknown</td>");