File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -158,13 +158,13 @@ private MinerMonitorStat MapRPCResponse(TRexTemplate trexTemplate)
158158 GPUID = trexGPU . device_id ,
159159 HashRate = trexGPU . hashrate ,
160160 FanSpeed = ( short ) trexGPU . fan_speed ,
161- Temp = 0 ,
162- Power = 0 ,
161+ Temp = ( short ) trexGPU . temperature ,
162+ Power = ( short ) trexGPU . power ,
163163 HardwareType = Hardware
164164 } ;
165165
166166 // Sum up power and hashrate
167- minerMonitorStat . Power += 0 ;
167+ minerMonitorStat . Power += trexGPU . power ;
168168 minerMonitorStat . HashRate += trexGPU . hashrate ;
169169
170170 // Add GPU stats to list
Original file line number Diff line number Diff line change @@ -55,6 +55,7 @@ public class GPUList
5555 public int temperature { get ; set ; }
5656 public string vendor { get ; set ; }
5757 public bool disabled { get ; set ; }
58+ public int power { get ; set ; }
5859 public int disabled_at_temperature { get ; set ; }
5960 }
6061
You can’t perform that action at this time.
0 commit comments