fix(core): Cleanup UOGateway (#555)
This commit is contained in:
parent
6649344ad2
commit
d40273f99d
2 changed files with 5 additions and 5 deletions
|
|
@ -113,8 +113,8 @@ namespace Server.Network
|
||||||
writer.Write(ConnectUOProtocolVersion); // Version
|
writer.Write(ConnectUOProtocolVersion); // Version
|
||||||
writer.Write((byte)_serverType);
|
writer.Write((byte)_serverType);
|
||||||
writer.Write((int)(Core.TickCount / 1000));
|
writer.Write((int)(Core.TickCount / 1000));
|
||||||
writer.Write(Accounts.Count); // Shame if you modify this!
|
writer.Write(Accounts.Count); // Shame if you modify this!
|
||||||
writer.Write(TcpServer.Instances.Count); // Shame if you modify this!
|
writer.Write(TcpServer.Instances.Count - 1); // Shame if you modify this!
|
||||||
|
|
||||||
ns.Send(writer.Span);
|
ns.Send(writer.Span);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ namespace Server.Network
|
||||||
{
|
{
|
||||||
ns.SendCompactShardStats(
|
ns.SendCompactShardStats(
|
||||||
(uint)(Core.TickCount / 1000),
|
(uint)(Core.TickCount / 1000),
|
||||||
TcpServer.Instances.Count,
|
TcpServer.Instances.Count - 1, // Shame if you modify this!
|
||||||
World.Items.Count,
|
World.Items.Count,
|
||||||
World.Mobiles.Count,
|
World.Mobiles.Count,
|
||||||
GC.GetTotalMemory(false)
|
GC.GetTotalMemory(false)
|
||||||
|
|
@ -50,7 +50,7 @@ namespace Server.Network
|
||||||
ns.SendExtendedShardStats(
|
ns.SendExtendedShardStats(
|
||||||
ServerList.ServerName,
|
ServerList.ServerName,
|
||||||
(int)(Core.TickCount / ticksInHour),
|
(int)(Core.TickCount / ticksInHour),
|
||||||
TcpServer.Instances.Count,
|
TcpServer.Instances.Count - 1, // Shame if you modify this!
|
||||||
World.Items.Count,
|
World.Items.Count,
|
||||||
World.Mobiles.Count,
|
World.Mobiles.Count,
|
||||||
(int)(GC.GetTotalMemory(false) / 1024)
|
(int)(GC.GetTotalMemory(false) / 1024)
|
||||||
|
|
@ -88,7 +88,7 @@ namespace Server.Network
|
||||||
}
|
}
|
||||||
|
|
||||||
var str =
|
var str =
|
||||||
$"ModernUO, Name={name}, Age={age}, Clients={clients}, Items={items}, Chars={mobiles}, Mem={mem}, Ver=2";
|
$"ModernUO, Name={name}, Age={age}, Clients={clients}, Items={items}, Chars={mobiles}, Mem={mem}K, Ver=2";
|
||||||
|
|
||||||
var length = Encoding.UTF8.GetMaxByteCount(str.Length);
|
var length = Encoding.UTF8.GetMaxByteCount(str.Length);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue