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; }