mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-23 13:04:29 +00:00
Exit with a failed return code if we did not reach opt_shares.
This commit is contained in:
parent
8f788ec927
commit
af15955b78
2
main.c
2
main.c
@ -4311,6 +4311,8 @@ static void print_summary(void)
|
|||||||
applog(LOG_WARNING, "Mined %d accepted shares of %d requested\n", total_accepted, opt_shares);
|
applog(LOG_WARNING, "Mined %d accepted shares of %d requested\n", total_accepted, opt_shares);
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
fflush(stderr);
|
fflush(stderr);
|
||||||
|
if (opt_shares > total_accepted)
|
||||||
|
quit(1, "Did not successfully mine as many shares as were requested.");
|
||||||
}
|
}
|
||||||
|
|
||||||
void quit(int status, const char *format, ...)
|
void quit(int status, const char *format, ...)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user