Commit 089113f6 authored by Eric Cano's avatar Eric Cano
Browse files

Fixed typo in OStoreDB::delayIfNecessary()

parent 0ee7bd2e
......@@ -137,7 +137,7 @@ void OStoreDB::delayIfNecessary(log::LogContext& lc) {
double delayInt;
::timespec ts;
ts.tv_nsec = std::modf(delay, &delayInt) * 1000 * 1000 *1000;
ts.tv_nsec = delayInt;
ts.tv_sec = delayInt;
nanosleep(&ts, nullptr);
sleepDelay = t.secs(utils::Timer::resetCounter);
delayInserted = true;
......
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