mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-05 11:34:16 +00:00
We should be passing a float for the remainder of the vddc values.
This commit is contained in:
parent
7ea7f5f324
commit
9752704ebe
2
main.c
2
main.c
@ -1241,7 +1241,7 @@ static char *set_gpu_vddc(char *arg)
|
|||||||
gpus[device++].gpu_vddc = val;
|
gpus[device++].gpu_vddc = val;
|
||||||
|
|
||||||
while ((nextptr = strtok(NULL, ",")) != NULL) {
|
while ((nextptr = strtok(NULL, ",")) != NULL) {
|
||||||
val = atoi(nextptr);
|
val = atof(nextptr);
|
||||||
if (val <= 0 || val >= 9999)
|
if (val <= 0 || val >= 9999)
|
||||||
return "Invalid value passed to set_gpu_vddc";
|
return "Invalid value passed to set_gpu_vddc";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user