public ServerSpeedLogShow Translate() { ServerSpeedLogShow ret = new ServerSpeedLogShow(); lock (this) { Sweep(); ret.avgDownloadBytes = AvgDownloadBytes; ret.avgUploadBytes = AvgUploadBytes; ret.avgConnectTime = AvgConnectTime; ret.maxDownloadBytes = maxTransDownload; ret.maxUploadBytes = maxTransUpload; ret.totalConnectTimes = totalConnectTimes; ret.totalDisconnectTimes = totalDisconnectTimes; ret.errorConnectTimes = errorConnectTimes; ret.errorTimeoutTimes = errorTimeoutTimes; ret.errorDecodeTimes = errorDecodeTimes; ret.errorEmptyTimes = errorEmptyTimes; ret.errorLogTimes = errList.Count; ret.errorContinurousTimes = errorContinurousTimes; ret.totalUploadBytes = transUpload; ret.totalDownloadBytes = transDownload; ret.totalDownloadRawBytes = transDownloadRaw; ret.sumConnectTime = sumConnectTime; } return(ret); }
public ServerSpeedLogShow Translate() { ServerSpeedLogShow ret = new ServerSpeedLogShow(); lock (this) { ret.avgDownloadBytes = AvgDownloadBytes; ret.avgConnectTime = AvgConnectTime; ret.maxDownloadBytes = maxTransDownload; ret.totalConnectTimes = totalConnectTimes; ret.totalDisconnectTimes = totalDisconnectTimes; ret.errorConnectTimes = errorConnectTimes; ret.errorTimeoutTimes = errorTimeoutTimes; ret.errorNoDataTimes = errorNoDataTimes; ret.errorContinurousTimes = errorContinurousTimes; ret.totalUploadBytes = transUpload; ret.totalDownloadBytes = transDownload; ret.sumConnectTime = sumConnectTime; } return ret; }
public ServerSpeedLogShow Translate() { ServerSpeedLogShow ret = new ServerSpeedLogShow(); lock (this) { ret.avgDownloadBytes = AvgDownloadBytes; ret.avgConnectTime = AvgConnectTime; ret.maxDownloadBytes = maxTransDownload; ret.totalConnectTimes = totalConnectTimes; ret.totalDisconnectTimes = totalDisconnectTimes; ret.errorConnectTimes = errorConnectTimes; ret.errorTimeoutTimes = errorTimeoutTimes; ret.errorContinurousTimes = errorContinurousTimes; ret.totalUploadBytes = transUpload; ret.totalDownloadBytes = transDownload; ret.sumConnectTime = sumConnectTime; } return(ret); }
public ServerSpeedLogShow Translate() { ServerSpeedLogShow ret = new ServerSpeedLogShow(); lock (this) { ret.avgDownloadBytes = AvgDownloadBytes; ret.avgConnectTime = AvgConnectTime; ret.maxDownloadBytes = maxTransDownload; ret.totalConnectTimes = totalConnectTimes; ret.totalDisconnectTimes = totalDisconnectTimes; ret.errorConnectTimes = errorConnectTimes; ret.errorTimeoutTimes = errorTimeoutTimes; ret.errorDecodeTimes = errorDecodeTimes; ret.errorEmptyTimes = errorEmptyTimes; ret.errorLogTimes = errList.Count; ret.errorContinurousTimes = errorContinurousTimes; ret.totalUploadBytes = transUpload; ret.totalDownloadBytes = transDownload; ret.totalDownloadRawBytes = transDownloadRaw; ret.sumConnectTime = sumConnectTime; } return ret; }
public void UpdateLogThread() { while (workerThread != null) { Configuration config = controller.GetCurrentConfiguration(); ServerSpeedLogShow[] _ServerSpeedLogList = new ServerSpeedLogShow[config.configs.Count]; for (int i = 0; i < config.configs.Count; ++i) { _ServerSpeedLogList[i] = config.configs[i].ServerSpeedLog().Translate(); } ServerSpeedLogList = _ServerSpeedLogList; workerThread.Suspend(); } }