Commit 693f4a11230cc5d90dd461252b42712716ddf7ab

Con Kolivas 2014-02-08T11:14:55

Put the hashfast temperature into the cgpu structure so that it shows up in the devs API call.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/driver-hashfast.c b/driver-hashfast.c
index 2e10331..b313179 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -753,6 +753,7 @@ static void hfa_update_die_status(struct cgpu_info *hashfast, struct hashfast_in
 		}
 		/* Exponentially change the max_temp to smooth out troughs. */
 		info->max_temp = info->max_temp * 0.63 + die_temperature * 0.37;
+		hashfast->temp = info->max_temp;
 	}
 
 	if (unlikely(info->max_temp >= opt_hfa_overheat)) {