This repository was archived by the owner on Apr 24, 2022. It is now read-only.
File tree 1 file changed +1
-3
lines changed
1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -267,15 +267,13 @@ class Farm: public FarmFace
267
267
wrap_nvml_get_fanpcnt (nvmlh, hwInfo.deviceIndex , &fanpcnt);
268
268
if (power) {
269
269
wrap_nvml_get_power_usage (nvmlh, hwInfo.deviceIndex , &powerW);
270
- hw.powerW = powerW/((double )1000.0 );
271
270
}
272
271
}
273
272
else if (hwInfo.deviceType == HwMonitorInfoType::AMD && adlh) {
274
273
wrap_adl_get_tempC (adlh, hwInfo.deviceIndex , &tempC);
275
274
wrap_adl_get_fanpcnt (adlh, hwInfo.deviceIndex , &fanpcnt);
276
275
if (power) {
277
276
wrap_adl_get_power_usage (adlh, hwInfo.deviceIndex , &powerW);
278
- hw.powerW = powerW/((double )1000.0 );
279
277
}
280
278
}
281
279
#if defined(__linux)
@@ -285,13 +283,13 @@ class Farm: public FarmFace
285
283
wrap_amdsysfs_get_fanpcnt (sysfsh, hwInfo.deviceIndex , &fanpcnt);
286
284
if (power) {
287
285
wrap_amdsysfs_get_power_usage (sysfsh, hwInfo.deviceIndex , &powerW);
288
- hw.powerW = powerW/((double )1000.0 );
289
286
}
290
287
}
291
288
#endif
292
289
}
293
290
hw.tempC = tempC;
294
291
hw.fanP = fanpcnt;
292
+ hw.powerW = powerW/((double )1000.0 );
295
293
p.minerMonitors .push_back (hw);
296
294
}
297
295
}
You can’t perform that action at this time.
0 commit comments