mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-27 15:04:17 +00:00
--shares should be scaled to diff1 not absolute number of shares
This commit is contained in:
parent
cd03fcdf2d
commit
694a98ece3
@ -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);
|
||||
}
|
||||
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);
|
||||
kill_work();
|
||||
return;
|
||||
@ -6970,9 +6970,9 @@ void print_summary(void)
|
||||
}
|
||||
|
||||
if (opt_shares) {
|
||||
applog(LOG_WARNING, "Mined %d accepted shares of %d requested\n", total_accepted, opt_shares);
|
||||
if (opt_shares > total_accepted)
|
||||
applog(LOG_WARNING, "WARNING - Mined only %d shares of %d requested.", total_accepted, opt_shares);
|
||||
applog(LOG_WARNING, "Mined %.0f accepted shares of %d requested\n", total_diff_accepted, opt_shares);
|
||||
if (opt_shares > total_diff_accepted)
|
||||
applog(LOG_WARNING, "WARNING - Mined only %.0f shares of %d requested.", total_diff_accepted, opt_shares);
|
||||
}
|
||||
applog(LOG_WARNING, " ");
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user