Ignore:
Timestamp:
Jun 19, 2016, 1:52:31 PM (8 years ago)
Author:
alloc
Message:

Mod stuff

File:
1 edited

Legend:

Unmodified
Added
Removed
  • binary-improvements/MapRendering/Commands/webstat.cs

    r230 r279  
    1919                {
    2020                        try {
    21                                 SdtdConsole.Instance.Output ("Current handlers: " + AllocsFixes.NetConnections.Servers.Web.Web.currentHandlers + " - total: " + AllocsFixes.NetConnections.Servers.Web.Web.handlingCount);
     21                                int curHandlers = AllocsFixes.NetConnections.Servers.Web.Web.currentHandlers;
     22                                int totalHandlers = AllocsFixes.NetConnections.Servers.Web.Web.handlingCount;
     23                                long totalTime = AllocsFixes.NetConnections.Servers.Web.Web.totalHandlingTime;
     24                                SdtdConsole.Instance.Output ("Current Web handlers: " + curHandlers + " - total: " + totalHandlers);
     25                                SdtdConsole.Instance.Output (" - Total time: " + totalTime + " µs - average time: " + (totalTime / totalHandlers) + " µs");
     26
     27                                curHandlers = AllocsFixes.NetConnections.Servers.Web.WebCommandResult.currentHandlers;
     28                                totalHandlers = AllocsFixes.NetConnections.Servers.Web.WebCommandResult.handlingCount;
     29                                totalTime = AllocsFixes.NetConnections.Servers.Web.WebCommandResult.totalHandlingTime;
     30                                SdtdConsole.Instance.Output ("Current Web command handlers: " + curHandlers + " - total: " + totalHandlers);
     31                                SdtdConsole.Instance.Output (" - Total time: " + totalTime + " µs" + (totalHandlers > 0 ? " - average time: " + (totalTime / totalHandlers) + " µs" : ""));
    2232                        } catch (Exception e) {
    2333                                Log.Out ("Error in webstat.Run: " + e);
Note: See TracChangeset for help on using the changeset viewer.