|
|
@ -31,7 +31,6 @@ |
|
|
|
#include <sys/stat.h> |
|
|
|
#include <sys/stat.h> |
|
|
|
#include <sys/types.h> |
|
|
|
#include <sys/types.h> |
|
|
|
|
|
|
|
|
|
|
|
#include "compat.h" |
|
|
|
|
|
|
|
#include "miner.h" |
|
|
|
#include "miner.h" |
|
|
|
#include "nvml.h" |
|
|
|
#include "nvml.h" |
|
|
|
|
|
|
|
|
|
|
@ -135,7 +134,7 @@ static void gpustatus(int thr_id) |
|
|
|
card = device_name[gpuid]; |
|
|
|
card = device_name[gpuid]; |
|
|
|
|
|
|
|
|
|
|
|
snprintf(buf, sizeof(buf), "GPU=%d;BUS=%hd;CARD=%s;" |
|
|
|
snprintf(buf, sizeof(buf), "GPU=%d;BUS=%hd;CARD=%s;" |
|
|
|
"TEMP=%.1f;FAN=%hu;RPM=%hu;FREQ=%d;KHS=%.2f;HWF=%d;I=%.2f;THR=%u|", |
|
|
|
"TEMP=%.1f;FAN=%hu;RPM=%hu;FREQ=%d;KHS=%.2f;HWF=%d;I=%.1f;THR=%u|", |
|
|
|
gpuid, cgpu->gpu_bus, card, cgpu->gpu_temp, cgpu->gpu_fan, |
|
|
|
gpuid, cgpu->gpu_bus, card, cgpu->gpu_temp, cgpu->gpu_fan, |
|
|
|
cgpu->gpu_fan_rpm, cgpu->gpu_clock, cgpu->khashes, |
|
|
|
cgpu->gpu_fan_rpm, cgpu->gpu_clock, cgpu->khashes, |
|
|
|
cgpu->hw_errors, cgpu->intensity, cgpu->throughput); |
|
|
|
cgpu->hw_errors, cgpu->intensity, cgpu->throughput); |
|
|
@ -891,4 +890,4 @@ void api_set_throughput(int thr_id, uint32_t throughput) |
|
|
|
cgpu->intensity += ((float) (throughput-(1U << i)) / (1U << i)); |
|
|
|
cgpu->intensity += ((float) (throughput-(1U << i)) / (1U << i)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|