Some cleanup
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
diff --git a/libztex.c b/libztex.c
index 6ed61fc..1935d9c 100644
--- a/libztex.c
+++ b/libztex.c
@@ -469,7 +469,4 @@ void libztex_freeDevList (struct libztex_dev_list **devs) {
free(devs);
}
-int libztex_configreFpga (struct libztex_dev_list* dev) {
- return 0;
-}
diff --git a/todo_ztex.txt b/todo_ztex.txt
index ca601a2..4014b04 100644
--- a/todo_ztex.txt
+++ b/todo_ztex.txt
@@ -1,6 +1,4 @@
- verify setting cgpu.status=DEAD does in fact stop the thread
-- make it compile on osx / windows
-- read actual bitstream
- allow configuring bitstream directory
- HS fpga config
- allow configuring LIBZTEX_OVERHEATTHRESHOLD
diff --git a/ztex.c b/ztex.c
index 56897f4..dc79947 100644
--- a/ztex.c
+++ b/ztex.c
@@ -249,11 +249,6 @@ static uint64_t ztex_scanhash(struct thr_info *thr, struct work *work,
}
- //if (thr->id == 1 && !work_restart[thr->id]) {
- // ztex_disable(thr);
- // return 0;
- // }
-
ztex->errorRate[ztex->freqM] = ztex->errorCount[ztex->freqM] / ztex->errorWeight[ztex->freqM] * (ztex->errorWeight[ztex->freqM]<100 ? ztex->errorWeight[ztex->freqM]*0.01 : 1.0);
if (ztex->errorRate[ztex->freqM] > ztex->maxErrorRate[ztex->freqM]) {
ztex->maxErrorRate[ztex->freqM] = ztex->errorRate[ztex->freqM];