1
0
Fork 0
mirror of https://github.com/eosswedenorg/antelope-keygen synced 2026-06-17 03:50:03 +02:00

src/main.cpp: print a notice message if cli argument --threads is less than 2.

This commit is contained in:
Henrik Hautakoski 2020-02-05 15:30:16 +01:00
parent dbb6b64950
commit cb5df9bbba

View file

@ -163,6 +163,8 @@ int main(int argc, char **argv) {
#ifdef HAVE_THREADS
option_num_threads = atoi(argv[p] + 10);
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;
}
#else