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:
|
||||
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"
|
||||
"Memory Clock: %d Mhz\nVddc: %.3f V\nActivity: %d%%\nPowertune: %d%%\n",
|
||||
temp, fanpercent, fanspeed, engineclock, memclock, vddc, activity, powertune);
|
||||
wlogprint("Temp: %.1f C\n", temp);
|
||||
if (fanpercent >= 0 || fanspeed >= 0) {
|
||||
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",
|
||||
gpus[gpu].min_fan, gpus[gpu].gpu_fan);
|
||||
wlogprint("GPU engine clock autotune is %s (%d-%d)\n", ga->autoengine ? "enabled" : "disabled",
|
||||
|
Loading…
x
Reference in New Issue
Block a user