From 4076e6b36e90fbcea758b1fa22f2c79cae3e90d2 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 26 May 2013 08:57:02 +1000 Subject: [PATCH] Make sure we're not adjusting temps on every successful work retrieval on avalon. --- driver-avalon.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/driver-avalon.c b/driver-avalon.c index 3c98d12f..eb8e9ca1 100644 --- a/driver-avalon.c +++ b/driver-avalon.c @@ -645,7 +645,7 @@ static void avalon_parse_results(struct cgpu_info *avalon, struct avalon_info *i found = true; mutex_lock(&info->lock); - if (!avalon->results++ % info->miner_count) { + if (!(++avalon->results % info->miner_count)) { gettemp = true; avalon->results = 0; }