Beispiel #1
0
        public static void QueryExtendedShardStats(NetState state, CircularBufferReader reader, int packetLength)
        {
            const long ticksInHour = 1000 * 60 * 60;

            state.SendExtendedShardStats(
                ServerList.ServerName,
                (int)(Core.TickCount / ticksInHour),
                TcpServer.Instances.Count - 1, // Shame if you modify this!
                World.Items.Count,
                World.Mobiles.Count,
                (int)(GC.GetTotalMemory(false) / 1024)
                );
        }