mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +00:00
Only display supported values from fanspeed on change settings.
This commit is contained in:
parent
b4009adaac
commit
88eb514cd1
14
adl.c
14
adl.c
@ -981,9 +981,17 @@ void change_gpusettings(int gpu)
|
|||||||
|
|
||||||
updated:
|
updated:
|
||||||
if (gpu_stats(gpu, &temp, &engineclock, &memclock, &vddc, &activity, &fanspeed, &fanpercent, &powertune))
|
if (gpu_stats(gpu, &temp, &engineclock, &memclock, &vddc, &activity, &fanspeed, &fanpercent, &powertune))
|
||||||
wlogprint("Temp: %.1f C\nFan Speed: %d%% (%d RPM)\nEngine Clock: %d MHz\n"
|
wlogprint("Temp: %.1f C\n", temp);
|
||||||
"Memory Clock: %d Mhz\nVddc: %.3f V\nActivity: %d%%\nPowertune: %d%%\n",
|
if (fanpercent >= 0 || fanspeed >= 0) {
|
||||||
temp, fanpercent, fanspeed, engineclock, memclock, vddc, activity, powertune);
|
wlogprint("Fan Speed: ");
|
||||||
|
if (fanpercent >= 0)
|
||||||
|
wlogprint("%d%% ", fanpercent);
|
||||||
|
if (fanspeed >= 0)
|
||||||
|
wlogprint("(%d RPM)", fanspeed);
|
||||||
|
wlogprint("\n");
|
||||||
|
}
|
||||||
|
wlogprint("Engine Clock: %d MHz\nMemory Clock: %d Mhz\nVddc: %.3f V\nActivity: %d%%\nPowertune: %d%%\n",
|
||||||
|
engineclock, memclock, vddc, activity, powertune);
|
||||||
wlogprint("Fan autotune is %s (%d-%d)\n", ga->autofan ? "enabled" : "disabled",
|
wlogprint("Fan autotune is %s (%d-%d)\n", ga->autofan ? "enabled" : "disabled",
|
||||||
gpus[gpu].min_fan, gpus[gpu].gpu_fan);
|
gpus[gpu].min_fan, gpus[gpu].gpu_fan);
|
||||||
wlogprint("GPU engine clock autotune is %s (%d-%d)\n", ga->autoengine ? "enabled" : "disabled",
|
wlogprint("GPU engine clock autotune is %s (%d-%d)\n", ga->autoengine ? "enabled" : "disabled",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user