|
|
@ -2324,7 +2324,7 @@ share_result(json_t *val, json_t *res, json_t *err, const struct work *work, |
|
|
|
hashshow, cgpu->drv->name, cgpu->device_id, resubmit ? "(resubmit)" : "", worktime); |
|
|
|
hashshow, cgpu->drv->name, cgpu->device_id, resubmit ? "(resubmit)" : "", worktime); |
|
|
|
} |
|
|
|
} |
|
|
|
sharelog("accept", work); |
|
|
|
sharelog("accept", work); |
|
|
|
if (opt_shares && total_accepted >= opt_shares) { |
|
|
|
if (opt_shares && total_diff_accepted >= opt_shares) { |
|
|
|
applog(LOG_WARNING, "Successfully mined %d accepted shares as requested and exiting.", opt_shares); |
|
|
|
applog(LOG_WARNING, "Successfully mined %d accepted shares as requested and exiting.", opt_shares); |
|
|
|
kill_work(); |
|
|
|
kill_work(); |
|
|
|
return; |
|
|
|
return; |
|
|
@ -6970,9 +6970,9 @@ void print_summary(void) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (opt_shares) { |
|
|
|
if (opt_shares) { |
|
|
|
applog(LOG_WARNING, "Mined %d accepted shares of %d requested\n", total_accepted, opt_shares); |
|
|
|
applog(LOG_WARNING, "Mined %.0f accepted shares of %d requested\n", total_diff_accepted, opt_shares); |
|
|
|
if (opt_shares > total_accepted) |
|
|
|
if (opt_shares > total_diff_accepted) |
|
|
|
applog(LOG_WARNING, "WARNING - Mined only %d shares of %d requested.", total_accepted, opt_shares); |
|
|
|
applog(LOG_WARNING, "WARNING - Mined only %.0f shares of %d requested.", total_diff_accepted, opt_shares); |
|
|
|
} |
|
|
|
} |
|
|
|
applog(LOG_WARNING, " "); |
|
|
|
applog(LOG_WARNING, " "); |
|
|
|
|
|
|
|
|
|
|
|