mirror of https://gitee.com/bigwinds/arangodb
just in case someone changes the epoch
This commit is contained in:
parent
da85dc2adc
commit
4d81c4c733
|
@ -44,7 +44,7 @@ DstDurationT clockOffset(
|
|||
std::chrono::duration_cast<SrcDurationT>(std::chrono::nanoseconds{300}),
|
||||
const int limit = 10000) {
|
||||
if (std::is_same<SrcClockT, DstClockT>::value) {
|
||||
return DstDurationT{};
|
||||
return SrcClockT::from_time_t(0).time_since_epoch();
|
||||
}
|
||||
|
||||
auto itercnt = 0;
|
||||
|
|
Loading…
Reference in New Issue