Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

Commit

Permalink
minion - count force use reread
Browse files Browse the repository at this point in the history
  • Loading branch information
kanoi committed May 30, 2014
1 parent 8d378a9 commit 9ddc43d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion driver-minion.c
Expand Up @@ -652,6 +652,7 @@ struct minion_info {
uint64_t spi_errors;
uint64_t fifo_spi_errors[MINION_CHIPS];
uint64_t res_spi_errors[MINION_CHIPS];
uint64_t use_res2[MINION_CHIPS];

uint64_t tasks_failed[MINION_CHIPS];
uint64_t tasks_recovered[MINION_CHIPS];
Expand Down Expand Up @@ -2390,6 +2391,7 @@ static void *minion_spi_reply(void *userdata)
} else {
use1 = result2;
use2 = NULL;
minioninfo->use_res2[chip]++;
}

//DATAR(item)->chip = RES_CHIP(use1);
Expand Down Expand Up @@ -3692,8 +3694,9 @@ static struct api_data *minion_api_stats(struct cgpu_info *minioncgpu)
data[0] = '\0';
for (j = i; j <= to; j++) {
snprintf(buf, sizeof(buf),
"%s%"PRIu64"/%"PRIu64"/%"PRIu64"/%"PRIu64,
"%s%"PRIu64"/%"PRIu64"/%"PRIu64"/%"PRIu64"/%"PRIu64,
j == i ? "" : " ",
minioninfo->use_res2[j],
minioninfo->tasks_failed[j],
minioninfo->tasks_recovered[j],
minioninfo->nonces_failed[j],
Expand Down

0 comments on commit 9ddc43d

Please sign in to comment.