Targets .NET Core 3.0 (#39)

This commit is contained in:
Kamron Batman 2019-08-02 17:53:18 -07:00 • committed by GitHub
parent 0993c03b70
commit 08bf44af9a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
125 changed files with 1473 additions and 14244 deletions

View file

@ -209,38 +209,6 @@ namespace Server.Gumps
sb.Append((maxIOCP - curIOCP) * 100 / maxIOCP);
sb.Append("%");
List<BufferPool> pools = BufferPool.Pools;
lock (pools)
{
for (int i = 0; i < pools.Count; ++i)
{
BufferPool pool = pools[i];
pool.GetInfo(out string name, out int freeCount, out _,
out int currentCapacity, out int bufferSize, out int misses);
if (sb.Length > 0)
sb.Append("<br><br>");
sb.Append(name);
sb.Append("<br>Size: ");
sb.Append(FormatByteAmount(bufferSize));
sb.Append("<br>Capacity: ");
sb.Append(currentCapacity);
sb.Append(" (");
sb.Append(misses);
sb.Append(" misses)<br>Available: ");
sb.Append(freeCount);
sb.Append("<br>Usage: ");
sb.Append((currentCapacity - freeCount) * 100 / currentCapacity);
sb.Append("% : ");
sb.Append(FormatByteAmount((currentCapacity - freeCount) * bufferSize));
sb.Append(" of ");
sb.Append(FormatByteAmount(currentCapacity * bufferSize));
}
}
AddLabel(20, 200, LabelHue, "Pooling:");
AddHtml(20, 220, 380, 150, sb.ToString(), true, true);