RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Server Status?

Kons.snoK

Sorceror
Jeff;830782 said:
This still has the potential of failing, You should manually force the Flush.

i'll write results asa i'll put new fixes :)

@PitHelvit: there is no reason to repeat all that code

Code:
		else if ( cmd == 0xFF )
			{
				string statStr = String.Format( ", Name={0}, Age={1}, Clients={2}, Items={3}, Chars={4}, Mem={5}K", Server.Misc.ServerList.ServerName, (int)(DateTime.Now-Server.Items.Clock.ServerStart).TotalHours, NetState.Instances.Count, World.Items.Count, World.Mobiles.Count, (int)(System.GC.GetTotalMemory(false)/1024) );
				state.Send( new UOGInfo( statStr ) );
#if MONO
				state.Flush();
				DelayedDisconnect(state);
#else
				state.Dispose();
#endif
			}
 
Top