We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b701fe commit 3bb0a46Copy full SHA for 3bb0a46
src/bench/bench_bitcoin.cpp
@@ -51,6 +51,13 @@ int main(int argc, char** argv)
51
std::string scaling_str = gArgs.GetArg("-scaling", DEFAULT_BENCH_SCALING);
52
bool is_list_only = gArgs.GetBoolArg("-list", false);
53
54
+ if (evaluations == 0) {
55
+ return EXIT_SUCCESS;
56
+ } else if (evaluations < 0) {
57
+ tfm::format(std::cerr, "Error parsing evaluations argument: %d\n", evaluations);
58
+ return EXIT_FAILURE;
59
+ }
60
+
61
double scaling_factor;
62
if (!ParseDouble(scaling_str, &scaling_factor)) {
63
tfm::format(std::cerr, "Error parsing scaling factor as double: %s\n", scaling_str.c_str());
0 commit comments