Exemple #1
0
 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));
 }
Exemple #2
0
 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));
 }