Commit 385d0526b746fc9aa3050a87a2aca99c4cb3991a

Kano 2014-02-14T17:54:30

bab - ensure disabled chips are counted in the screen dead chip counter

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
diff --git a/driver-bab.c b/driver-bab.c
index 60cbddf..a5ed3ad 100644
--- a/driver-bab.c
+++ b/driver-bab.c
@@ -2979,8 +2979,9 @@ static void bab_get_statline_before(char *buf, size_t bufsiz, struct cgpu_info *
 	if (elapsed > 15.0) {
 		K_RLOCK(babinfo->nfree_list);
 		for (i = 0; i < babinfo->chips; i++) {
-			if (babinfo->good_nonces[i]->count == 0 &&
-			    babinfo->bad_nonces[i]->count > 1)
+			if (babinfo->disabled[i] ||
+			    (babinfo->good_nonces[i]->count == 0 &&
+			     babinfo->bad_nonces[i]->count > 1))
 				dead++;
 		}
 		K_RUNLOCK(babinfo->nfree_list);