Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed format of node list in console app

  • Loading branch information...
commit 05929b7423dd8418fe35c511d1e05fc39bd09928 1 parent ebc7e3c
@seuffert authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 XBSlink/CommandLine.cs
View
4 XBSlink/CommandLine.cs
@@ -473,7 +473,7 @@ 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)
@@ -481,7 +481,7 @@ private void showConnectedNodes()
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
Please sign in to comment.
Something went wrong with that request. Please try again.