Browse Source

Use strtod not strtol for bitforce temp backup.

Con Kolivas 13 years ago
parent
commit
735d77f349
1 changed files with 1 additions and 1 deletions
  1. 1 1
      driver-bitforce.c

+ 1 - 1
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
 		/* Cope with older software  that breaks and reads nonsense
 		 * values */
 		 * values */
 		if (temp > 100)
 		if (temp > 100)
-			temp = strtol(s + 1, NULL, 10);
+			temp = strtod(s + 1, NULL);
 
 
 		if (temp > 0) {
 		if (temp > 0) {
 			bitforce->temp = temp;
 			bitforce->temp = temp;