Skip to content

Commit 13422a6

Browse files
committed
Fixed issue with TRex not returning power/temp
1 parent 48f3e6d commit 13422a6

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

BitPoolMiner/Miners/TRex.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

BitPoolMiner/Models/RPCResponse/TRexTemplate.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)