public void RefreshGpuState(IGpu gpu) { if (gpu.Index == NTMinerRoot.GpuAllId) { return; } try { OverClockRange range = _gpuHelper.GetClockRange(gpu.GetOverClockId()); gpu.UpdateState(range); } catch (System.Exception e) { Logger.ErrorDebugLine(e); } VirtualRoot.Happened(new GpuStateChangedEvent(gpu)); }
public void RefreshGpuState(IGpu gpu) { if (gpu.Index == NTMinerContext.GpuAllId) { return; } try { OverClockRange range = _gpuHelper.GetClockRange(gpu); gpu.UpdateState(range); } catch (Exception e) { Logger.ErrorDebugLine(e); } VirtualRoot.RaiseEvent(new GpuStateChangedEvent(Guid.Empty, gpu)); }