Permalink
Browse files

fixed format of node list in console app

  • Loading branch information...
1 parent ebc7e3c commit 05929b7423dd8418fe35c511d1e05fc39bd09928 seuffert committed Mar 18, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 XBSlink/CommandLine.cs
View
@@ -473,15 +473,15 @@ private void WriteLine(String text, ConsoleColor color_text, ConsoleColor color_
private void showConnectedNodes()
{
List<xbs_node> nodes = node_list.getXBSNodeListCopy();
- Console.WriteLine("Connected nodes: "+nodes.Count);
+ WriteLine("Connected nodes: "+nodes.Count);
int count = 0;
String str;
foreach (xbs_node node in nodes)
{
count++;
String ping = (node.last_ping_delay_ms >= 0) ? node.last_ping_delay_ms + "ms" : "N/A";
int port = (node.port_sendfrom == node.port_public) ? node.port_public : node.port_sendfrom;
- str = " " + count + ") \"" + node.nickname.PadRight(13) + "\" " + node.ip_public.ToString().PadLeft(15) + "/" + port.ToString().PadRight(5) + " Ping:" + ping.PadLeft(6) + " v:" + node.client_version;
+ str = " " + count + ") \"" + node.nickname.PadRight(13) + "\" " + node.ip_public.ToString().PadLeft(15) + "/" + port.ToString().PadRight(5) + " Ping:" + ping.PadLeft(6) + " v" + node.client_version;
if (node.get_xbox_count() > 0)
WriteLine(str, ConsoleColor.Yellow);
else

0 comments on commit 05929b7

Please sign in to comment.