Commit e8b71491 authored by Antoine Nguyen's avatar Antoine Nguyen
Browse files
parents 178f6930 49255ca3
......@@ -272,9 +272,10 @@ void parser::_parse(std::string const& cmd) {
"received: bad command line (" << cmd.c_str() + pos
<< ")");
if (opt.get_timeout() > 0 && opt.get_timeout() < timeout)
if (opt.get_timeout()
&& opt.get_timeout() < static_cast<unsigned int>(timeout))
timeout = opt.get_timeout();
else if (opt.get_timeout() > timeout)
else if (opt.get_timeout() > static_cast<unsigned int>(timeout))
throw (basic_error() << "invalid execution request " \
"received: timeout > to monitoring engine timeout");
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment