mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-11 07:17:58 +00:00
Make sure to read off the value in RPM only.
This commit is contained in:
parent
bf2669b83a
commit
320a5f2a92
1
adl.c
1
adl.c
@ -295,6 +295,7 @@ int gpu_fanspeed(int gpu)
|
|||||||
ga = &gpus[gpu].adl;
|
ga = &gpus[gpu].adl;
|
||||||
if (!(ga->lpFanSpeedInfo.iFlags & (ADL_DL_FANCTRL_SUPPORTS_RPM_READ | ADL_DL_FANCTRL_SUPPORTS_PERCENT_READ )))
|
if (!(ga->lpFanSpeedInfo.iFlags & (ADL_DL_FANCTRL_SUPPORTS_RPM_READ | ADL_DL_FANCTRL_SUPPORTS_PERCENT_READ )))
|
||||||
return 0;
|
return 0;
|
||||||
|
ga->lpFanSpeedValue.iSpeedType = ADL_DL_FANCTRL_SPEED_TYPE_RPM;
|
||||||
if (ADL_Overdrive5_FanSpeed_Get(ga->iAdapterIndex, 0, &ga->lpFanSpeedValue) != ADL_OK)
|
if (ADL_Overdrive5_FanSpeed_Get(ga->iAdapterIndex, 0, &ga->lpFanSpeedValue) != ADL_OK)
|
||||||
return 0;
|
return 0;
|
||||||
return ga->lpFanSpeedValue.iFanSpeed;
|
return ga->lpFanSpeedValue.iFanSpeed;
|
||||||
|
Loading…
Reference in New Issue
Block a user