mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-10 23:08:07 +00:00
Use strtod not strtol for bitforce temp backup.
This commit is contained in:
parent
947a67ea24
commit
735d77f349
@ -413,7 +413,7 @@ static bool bitforce_get_temp(struct cgpu_info *bitforce)
|
||||
/* Cope with older software that breaks and reads nonsense
|
||||
* values */
|
||||
if (temp > 100)
|
||||
temp = strtol(s + 1, NULL, 10);
|
||||
temp = strtod(s + 1, NULL);
|
||||
|
||||
if (temp > 0) {
|
||||
bitforce->temp = temp;
|
||||
|
Loading…
Reference in New Issue
Block a user