Commit 735d77f349e4f71dd9e84c90fb0e55bb7812431d

Con Kolivas 2012-10-07T12:59:02

Use strtod not strtol for bitforce temp backup.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-bitforce.c b/driver-bitforce.c
index 189daa6..606ec2e 100644
--- a/driver-bitforce.c
+++ b/driver-bitforce.c
@@ -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;