|
@@ -327,6 +327,86 @@ namespace NTMiner.Core.MinerServer {
|
|
|
this.AESPasswordOn = minerSign.AESPasswordOn;
|
|
|
}
|
|
|
|
|
|
+ public SpeedData ToSpeedData() {
|
|
|
+ return new SpeedData {
|
|
|
+ AutoRestartKernelTimes = this.AutoRestartKernelTimes,
|
|
|
+ AutoStartDelaySeconds = this.AutoStartDelaySeconds,
|
|
|
+ BootOn = this.BootOn,
|
|
|
+ ClientId = this.ClientId,
|
|
|
+ CpuGETemperatureSeconds = this.CpuGETemperatureSeconds,
|
|
|
+ CpuLETemperatureSeconds = this.CpuLETemperatureSeconds,
|
|
|
+ CpuPerformance = this.CpuPerformance,
|
|
|
+ CpuStartTemperature = this.CpuStartTemperature,
|
|
|
+ CpuStopTemperature = this.CpuStopTemperature,
|
|
|
+ CpuTemperature = this.CpuTemperature,
|
|
|
+ DiskSpace = this.DiskSpace,
|
|
|
+ DualCoinCode = this.DualCoinCode,
|
|
|
+ DualCoinPool = this.DualCoinPool,
|
|
|
+ DualCoinPoolDelay = this.DualCoinPoolDelay,
|
|
|
+ DualCoinRejectShare = this.DualCoinRejectShare,
|
|
|
+ DualCoinSpeed = this.DualCoinSpeed,
|
|
|
+ DualCoinSpeedOn = this.DualCoinSpeedOn,
|
|
|
+ DualCoinTotalShare = this.DualCoinTotalShare,
|
|
|
+ DualCoinWallet = this.DualCoinWallet,
|
|
|
+ GpuDriver = this.GpuDriver,
|
|
|
+ GpuInfo = this.GpuInfo,
|
|
|
+ GpuTable = this.GpuTable,
|
|
|
+ GpuType = this.GpuType,
|
|
|
+ HighCpuPercent = this.HighCpuPercent,
|
|
|
+ HighCpuSeconds = this.HighCpuSeconds,
|
|
|
+ IsAutoBoot = this.IsAutoBoot,
|
|
|
+ IsAutoDisableWindowsFirewall = this.IsAutoDisableWindowsFirewall,
|
|
|
+ IsAutoRestartKernel = this.IsAutoRestartKernel,
|
|
|
+ IsAutoStart = this.IsAutoStart,
|
|
|
+ IsAutoStartByCpu = this.IsAutoStartByCpu,
|
|
|
+ IsAutoStopByCpu = this.IsAutoStopByCpu,
|
|
|
+ IsDisableAntiSpyware = this.IsDisableAntiSpyware,
|
|
|
+ IsDisableUAC = this.IsDisableUAC,
|
|
|
+ IsDisableWAU = this.IsDisableWAU,
|
|
|
+ IsDualCoinEnabled = this.IsDualCoinEnabled,
|
|
|
+ IsFoundOneGpuShare = this.IsFoundOneGpuShare,
|
|
|
+ IsGotOneIncorrectGpuShare = this.IsGotOneIncorrectGpuShare,
|
|
|
+ IsMining = this.IsMining,
|
|
|
+ IsNoShareRestartComputer = this.IsNoShareRestartComputer,
|
|
|
+ IsNoShareRestartKernel = this.IsNoShareRestartKernel,
|
|
|
+ IsOuterUserEnabled = this.IsOuterUserEnabled,
|
|
|
+ IsPeriodicRestartComputer = this.IsPeriodicRestartComputer,
|
|
|
+ IsPeriodicRestartKernel = this.IsPeriodicRestartKernel,
|
|
|
+ IsRaiseHighCpuEvent = this.IsRaiseHighCpuEvent,
|
|
|
+ IsRejectOneGpuShare = this.IsRejectOneGpuShare,
|
|
|
+ Kernel = this.Kernel,
|
|
|
+ KernelCommandLine = this.KernelCommandLine,
|
|
|
+ KernelSelfRestartCount = this.KernelSelfRestartCount,
|
|
|
+ LocalIp = this.LocalIp,
|
|
|
+ LocalServerMessageTimestamp = this.LocalServerMessageTimestamp,
|
|
|
+ MACAddress = this.MACAddress,
|
|
|
+ MainCoinCode = this.MainCoinCode,
|
|
|
+ MainCoinPool = this.MainCoinPool,
|
|
|
+ MainCoinPoolDelay = this.MainCoinPoolDelay,
|
|
|
+ MainCoinRejectShare = this.MainCoinRejectShare,
|
|
|
+ MainCoinSpeed = this.MainCoinSpeed,
|
|
|
+ MainCoinSpeedOn = this.MainCoinSpeedOn,
|
|
|
+ MainCoinTotalShare = this.MainCoinTotalShare,
|
|
|
+ MainCoinWallet = this.MainCoinWallet,
|
|
|
+ MineContextId = this.MineContextId,
|
|
|
+ MinerIp = this.MinerIp,
|
|
|
+ MinerName = this.MinerName,
|
|
|
+ MineStartedOn = this.MineStartedOn,
|
|
|
+ MineWorkId = this.MineWorkId,
|
|
|
+ MineWorkName = this.MineWorkName,
|
|
|
+ NoShareRestartComputerMinutes = this.NoShareRestartComputerMinutes,
|
|
|
+ NoShareRestartKernelMinutes = this.NoShareRestartKernelMinutes,
|
|
|
+ OSName = this.OSName,
|
|
|
+ OSVirtualMemoryMb = this.OSVirtualMemoryMb,
|
|
|
+ PeriodicRestartComputerHours = this.PeriodicRestartComputerHours,
|
|
|
+ PeriodicRestartComputerMinutes = this.PeriodicRestartComputerMinutes,
|
|
|
+ PeriodicRestartKernelHours = this.PeriodicRestartKernelHours,
|
|
|
+ PeriodicRestartKernelMinutes = this.PeriodicRestartKernelMinutes,
|
|
|
+ TotalPhysicalMemoryMb = this.TotalPhysicalMemoryMb,
|
|
|
+ Version = this.Version
|
|
|
+ };
|
|
|
+ }
|
|
|
+
|
|
|
/// <summary>
|
|
|
/// 上报算力时。
|
|
|
/// 因为只有MinerData具有的成员发生了变化时才需要持久化所以该非法输出isMinerDataChanged参数以表示MinerData的成员是否发生了变化。
|