Commit 779c9df3bd2f4008422059a80300002806009084

Con Kolivas 2014-02-05T21:58:31

Decrease hfa clock by 10 if a reset is attempted due to the device remaining idle.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/driver-hashfast.c b/driver-hashfast.c
index 2d14adf..5ce7edb 100644
--- a/driver-hashfast.c
+++ b/driver-hashfast.c
@@ -1184,7 +1184,7 @@ static int64_t hfa_scanwork(struct thr_info *thr)
 		applog(LOG_WARNING, "%s %d: No valid hashes for over 1 minute, attempting to reset",
 		       hashfast->drv->name, hashfast->device_id);
 		if (info->hash_clock_rate > HFA_CLOCK_DEFAULT) {
-			info->hash_clock_rate -= 5;
+			info->hash_clock_rate -= 10;
 			if (info->hash_clock_rate < opt_hfa_hash_clock)
 				opt_hfa_hash_clock = info->hash_clock_rate;
 			applog(LOG_WARNING, "%s %d: Decreasing clock speed to %d with reset",