Timer::_timeout should be double and it should be allowed to have fractions.
This commit is contained in:
@ -1677,7 +1677,7 @@ double utils::timespec2seconds(const std::string ×pec)
|
||||
try {
|
||||
for (i = 0; i < 3; i++) {
|
||||
if (!values.has_next()) break;
|
||||
vals[i] = values.next_int();
|
||||
vals[i] = values.next_double();
|
||||
}
|
||||
} catch (TokenizerException &) {
|
||||
return -1.0;
|
||||
|
||||
Reference in New Issue
Block a user