1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-10 23:08:07 +00:00

Setting the hysteresis is unlikely to be useful on the fly and doesn't belong in the per-gpu submenu.

This commit is contained in:
Con Kolivas 2011-09-08 14:10:55 +10:00
parent 0e1c291624
commit b7d817812c

9
adl.c
View File

@ -951,8 +951,7 @@ void change_autosettings(int gpu)
wlogprint("Target temperature: %d\n", ga->targettemp); wlogprint("Target temperature: %d\n", ga->targettemp);
wlogprint("Overheat temperature: %d\n", ga->overtemp); wlogprint("Overheat temperature: %d\n", ga->overtemp);
wlogprint("Cutoff temperature: %d\n", ga->cutofftemp); wlogprint("Cutoff temperature: %d\n", ga->cutofftemp);
wlogprint("Hysteresis differece: %d\n", opt_hysteresis); wlogprint("Toggle [F]an auto [G]PU auto\nChange [T]arget [O]verheat [C]utoff\n");
wlogprint("Toggle [F]an auto [G]PU auto\nChange [T]arget [O]verheat [C]utoff [H]ysteresis\n");
wlogprint("Or press any other key to continue\n"); wlogprint("Or press any other key to continue\n");
input = getch(); input = getch();
if (!strncasecmp(&input, "f", 1)) { if (!strncasecmp(&input, "f", 1)) {
@ -989,12 +988,6 @@ void change_autosettings(int gpu)
wlogprint("Invalid temperature"); wlogprint("Invalid temperature");
else else
ga->cutofftemp = val; ga->cutofftemp = val;
} else if (!strncasecmp(&input, "h", 1)) {
val = curses_int("Enter hysteresis temperature difference (1-10)");
if (val < 1 || val > 10)
wlogprint("Invalid value");
else
opt_hysteresis = val;
} }
} }