Line | |
---|
1 | using System;
|
---|
2 | using System.Collections.Generic;
|
---|
3 |
|
---|
4 | namespace 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.