";
}
public override string Render()
{
StringBuilder builder = new StringBuilder ();
string name = Conf.Name.Substring (0, Conf.Name.Length > 18 ? 18 : Conf.Name.Length);
string country = (Server != null ? Server.Country : String.Empty);
string location = (Server != null ? Server.DisplayLocation : "Unknown");
builder.Append ("| " + Peer.TallyChar + " | ");
builder.Append ("" + name + " | ");
builder.Append (@"" + Peer.Stratus + " | ");
builder.Append (@"" + Peer.LastPoll + " | ");
builder.Append (@"" + Peer.Poll + " | ");
builder.Append (@"" + Peer.Reach + " | ");
builder.Append (@"" + Peer.Delay.ToString ("0.000") + " | ");
builder.Append (@"" + Peer.Offset.ToString ("0.000") + " | ");
builder.Append (@"" + Peer.Jitter.ToString ("0.000") + " | ");
if (Server != null) {
builder.Append (@"" + country + " | ");
builder.Append (@"");
builder.Append (location);
builder.AppendLine (" | ");
}
return builder.ToString ();
}
public override string RenderFooter()
{
return "
";
}
}
}