mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +00:00
Revert "Restarting cgminer from within after ADL has been corrupted only leads to a crash. Display a warning only and disable fanspeed monitoring."
This reverts commit 07212db106a1cc654affe3b95bf8acff7b8ed752. Reverting this did not fix the crashes people were having with ADL failing after a week and removed the functionality this patch originally intended.
This commit is contained in:
parent
4c5d41a8dd
commit
07045055e9
6
adl.c
6
adl.c
@ -692,7 +692,11 @@ int gpu_fanpercent(int gpu)
|
|||||||
unlock_adl();
|
unlock_adl();
|
||||||
if (unlikely(ga->has_fanspeed && ret == -1)) {
|
if (unlikely(ga->has_fanspeed && ret == -1)) {
|
||||||
applog(LOG_WARNING, "GPU %d stopped reporting fanspeed due to driver corruption", gpu);
|
applog(LOG_WARNING, "GPU %d stopped reporting fanspeed due to driver corruption", gpu);
|
||||||
applog(LOG_WARNING, "You will need to start cgminer from scratch to correct this");
|
if (opt_restart) {
|
||||||
|
applog(LOG_WARNING, "Restart enabled, will restart cgminer");
|
||||||
|
applog(LOG_WARNING, "You can disable this with the --no-restart option");
|
||||||
|
app_restart();
|
||||||
|
}
|
||||||
applog(LOG_WARNING, "Disabling fanspeed monitoring on this device");
|
applog(LOG_WARNING, "Disabling fanspeed monitoring on this device");
|
||||||
ga->has_fanspeed = false;
|
ga->has_fanspeed = false;
|
||||||
if (ga->twin) {
|
if (ga->twin) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user