mirror of https://gitee.com/bigwinds/arangodb
fixed busy wait
This commit is contained in:
parent
b57481365d
commit
a0883fb0fc
|
@ -188,7 +188,7 @@ void HeartbeatThread::runDBServer() {
|
|||
CONDITION_LOCKER(locker, _condition);
|
||||
wasNotified = _wasNotified;
|
||||
if (!wasNotified) {
|
||||
locker.wait(static_cast<uint64_t>(remain) * 1000000);
|
||||
locker.wait(static_cast<uint64_t>(remain * 1000000.0));
|
||||
wasNotified = _wasNotified;
|
||||
_wasNotified = false;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue