mirror of
https://github.com/eosswedenorg/antelope-keygen
synced 2026-07-04 12:03:41 +02:00
src/main.cpp: print a notice message if cli argument --threads is less than 2.
This commit is contained in:
parent
dbb6b64950
commit
cb5df9bbba
1 changed files with 2 additions and 0 deletions
|
|
@ -163,6 +163,8 @@ int main(int argc, char **argv) {
|
||||||
#ifdef HAVE_THREADS
|
#ifdef HAVE_THREADS
|
||||||
option_num_threads = atoi(argv[p] + 10);
|
option_num_threads = atoi(argv[p] + 10);
|
||||||
if (option_num_threads < 2) {
|
if (option_num_threads < 2) {
|
||||||
|
std::cerr << "NOTICE: Number of threads less than 2 does not make sense."
|
||||||
|
<< " So eosio-keygen will use 2." << std::endl;
|
||||||
option_num_threads = 2;
|
option_num_threads = 2;
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue