1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-11 07:17:58 +00:00

Should the donation pool fail, don't make the fallover pool behave as though the primary pool is lagging.

This commit is contained in:
Con Kolivas 2012-01-05 21:45:46 +11:00
parent 59c29fc63f
commit ec8501a79c

7
main.c
View File

@ -2425,9 +2425,12 @@ static inline struct pool *select_pool(bool lagging)
static int rotating_pool = 0; static int rotating_pool = 0;
struct pool *pool, *cp; struct pool *pool, *cp;
if (!lagging && total_getworks && opt_donation > 0.0 && !donationpool.idle && if (total_getworks && opt_donation > 0.0 && !donationpool.idle &&
(float)donationpool.getwork_requested / (float)total_getworks < opt_donation / 100) (float)donationpool.getwork_requested / (float)total_getworks < opt_donation / 100) {
if (!lagging)
return &donationpool; return &donationpool;
lagging = false;
}
cp = current_pool(); cp = current_pool();