The unified diff between revisions [2d6a3a0e..] and [11a5f681..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'checks/check.cpp'
#
#
# patch "checks/check.cpp"
# from [13bc69c7aeadb063aee9c8bbb8db2aa68c767379]
# to [8bfeb47c287bea56e3b4543a034b486664a0d60d]
#
============================================================
--- checks/check.cpp 13bc69c7aeadb063aee9c8bbb8db2aa68c767379
+++ checks/check.cpp 8bfeb47c287bea56e3b4543a034b486664a0d60d
@@ -47,7 +47,7 @@ int main(int argc, char* argv[])
<< " --validate: Check test vectors\n"
<< " --benchmark: Benchmark everything\n"
<< " --bench-type={block,mode,stream,hash,mac,rng,pk}:\n"
- << " Benchmark only algorithms of a particular type\n"
+ << " Benchmark only algorithms of a particular type\n"
<< " --html: Produce HTML output for benchmarks\n"
<< " --seconds=n: Benchmark for n seconds\n"
<< " --init=<str>: Pass <str> to the library\n"
@@ -63,7 +63,7 @@ int main(int argc, char* argv[])
if(opts.is_set("seconds"))
{
seconds = std::atof(opts.value("seconds").c_str());
- if((seconds < 0.1 || seconds > 30) && seconds != 0)
+ if(seconds && (seconds < 0.1 || seconds > (5 * 60)))
{
std::cout << "Invalid argument to --seconds\n";
return 2;