Example #1
0
        private void StatsTimerElapsed(object source, System.Timers.ElapsedEventArgs e)
        {
            if (!Enabled)
            {
                WriteTimer.Stop();
                return;
            }

            if (LogSyncConnectorEnable)
            {
                LogConnectorStats();
            }
            if (LogRegionEnable)
            {
                LogStats("scene", LogRegionDirectory, LogRegionFilenamePrefix, LogRegionFileTimeMinutes, LogRegionFlushWrites, regionStatFields);
            }
            if (LogServerEnable)
            {
                LogStatsCombineCategory("server", LogServerDirectory, LogServerFilenamePrefix, LogServerFileTimeMinutes, LogServerFlushWrites, serverStatFields);
            }

            if (LogLLUDPBWAggEnabled)
            {
                LogLLUDPStats();
            }
        }
Example #2
0
 public void Dispose()
 {
     Enabled = false;
     LogSyncConnectorEnable = false;
     if (WriteTimer != null)
     {
         WriteTimer.Stop();
         WriteTimer.Dispose();
         WriteTimer = null;
     }
     Close();
 }
Example #3
0
 private void bWriteEnd_Click(object sender, EventArgs e)
 {
     WriteTimer.Stop();
 }
Example #4
0
 protected override void OnStop()
 {
     WriteTimer.Stop();
 }