Only adjust die speeds as well as fanspeeds on hfa if we've taken enough temperature samples.
diff --git a/driver-hashfast.c b/driver-hashfast.c
index 5608743..a53c1bb 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -1090,9 +1090,11 @@ static void hfa_temp_clock(struct cgpu_info *hashfast, struct hashfast_info *inf
}
}
- /* Find the direction of temperature change since we last checked */
+ /* Only attempt to adjust fanspeed and/or clock speeds if we have
+ * sampled enough temperature data. */
if (info->temp_updates < 5)
- goto fan_only;
+ return;
+ /* Find the direction of temperature change since we last checked */
info->temp_updates = 0;
temp_change = info->max_temp - info->last_max_temp;
info->last_max_temp = info->max_temp;
@@ -1124,7 +1126,6 @@ static void hfa_temp_clock(struct cgpu_info *hashfast, struct hashfast_info *inf
}
}
-fan_only:
/* Do no restarts at all if there has been one less than 15 seconds
* ago */
if (now_t - info->last_restart < 15)