mirror of https://gitee.com/bigwinds/arangodb
fixed an issue with the way std::chrono::duration is defaulted with respoect to units in different compilers
This commit is contained in:
parent
8032860791
commit
43125c2a10
|
@ -280,10 +280,11 @@ void Agent::sendAppendEntriesRPC() {
|
|||
std::vector<log_t> unconfirmed = _state.get(last_confirmed);
|
||||
index_t highest = unconfirmed.back().index;
|
||||
|
||||
if (highest == _lastHighest[followerId] &&
|
||||
(long)(500.0e6 * _config.minPing()) >
|
||||
(std::chrono::system_clock::now() - _lastSent[followerId])
|
||||
.count()) {
|
||||
std::chrono::duration<double> m =
|
||||
std::chrono::system_clock::now() - _lastSent[followerId];
|
||||
|
||||
if (highest == _lastHighest[followerId]
|
||||
&& 0.5 * _config.minPing() > m.count()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue