source: binary-improvements/MapRendering/Commands/webstat.cs@ 239

Last change on this file since 239 was 230, checked in by alloc, 10 years ago

Binary improvements

File size: 682 bytes
RevLine 
[230]1using System;
2using System.Collections.Generic;
3
4namespace AllocsFixes.CustomCommands
5{
6 public class webstat : ConsoleCmdAbstract
7 {
8 public override string GetDescription ()
9 {
10 return "DEBUG PURPOSES ONLY";
11 }
12
13 public override string[] GetCommands ()
14 {
15 return new string[] { "webstat" };
16 }
17
18 public override void Execute (List<string> _params, CommandSenderInfo _senderInfo)
19 {
20 try {
21 SdtdConsole.Instance.Output ("Current handlers: " + AllocsFixes.NetConnections.Servers.Web.Web.currentHandlers + " - total: " + AllocsFixes.NetConnections.Servers.Web.Web.handlingCount);
22 } catch (Exception e) {
23 Log.Out ("Error in webstat.Run: " + e);
24 }
25 }
26 }
27}
Note: See TracBrowser for help on using the repository browser.