aboutsummaryrefslogtreecommitdiffstats
path: root/checks
diff options
context:
space:
mode:
authorlloyd <[email protected]>2008-09-14 03:00:52 +0000
committerlloyd <[email protected]>2008-09-14 03:00:52 +0000
commita36102d141bf661f4658c3172072423582e6dc5c (patch)
treeb5118c71a31f2a1fdaff53f80e2f8a3136b4aef0 /checks
parentee7af60f61798863e775304b5bf7a5bc186e14e6 (diff)
Increase default benchmark time to 5s... 1.5 seconds (old value) is too
low, can be easily thrown off by random background activity, especially on uniprocessor machines
Diffstat (limited to 'checks')
-rw-r--r--checks/check.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/checks/check.cpp b/checks/check.cpp
index 047b8d051..d8d65b933 100644
--- a/checks/check.cpp
+++ b/checks/check.cpp
@@ -124,12 +124,12 @@ int main(int argc, char* argv[])
}
if(opts.is_set("bench-algo") || opts.is_set("benchmark") || opts.is_set("bench-type"))
{
- double seconds = 1.5;
+ double seconds = 5;
if(opts.is_set("seconds"))
{
seconds = std::atof(opts.value("seconds").c_str());
- if(seconds && (seconds < 0.1 || seconds > (5 * 60)))
+ if(seconds < 0.1 || seconds > (5 * 60)))
{
std::cout << "Invalid argument to --seconds\n";
return 2;