mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
fix timestamp
This commit is contained in:
parent
fe9ab9adc6
commit
1019cf42d8
@ -149,7 +149,7 @@ protected:
|
||||
}
|
||||
while (true)
|
||||
{
|
||||
UInt64 timestamp_usec = static_cast<UInt64>(timestamp.epochMicroseconds());
|
||||
UInt64 timestamp_usec = static_cast<UInt64>(Poco::Timestamp().epochMicroseconds());
|
||||
|
||||
/// Or spurious wakeup.
|
||||
bool signaled = std::cv_status::no_timeout == storage->condition.wait_for(lock,
|
||||
@ -166,7 +166,7 @@ protected:
|
||||
else
|
||||
{
|
||||
// heartbeat
|
||||
last_event_timestamp_usec = static_cast<UInt64>(timestamp.epochMicroseconds());
|
||||
last_event_timestamp_usec = static_cast<UInt64>(Poco::Timestamp().epochMicroseconds());
|
||||
return { getHeader(), true };
|
||||
}
|
||||
}
|
||||
@ -207,7 +207,6 @@ private:
|
||||
UInt64 heartbeat_interval_usec;
|
||||
UInt64 temporary_live_view_timeout_sec;
|
||||
UInt64 last_event_timestamp_usec = 0;
|
||||
Poco::Timestamp timestamp;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user