1
0
Fork 0

fixed busy wait

This commit is contained in:
Jan Steemann 2016-04-26 10:48:42 +02:00
parent b57481365d
commit a0883fb0fc
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}