mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-11 17:02:25 +00:00
Remove useless code
This commit is contained in:
parent
6807f8428d
commit
1f5df287c0
@ -32,18 +32,11 @@ void AsynchronousMetricLogElement::appendToBlock(MutableColumns & columns) const
|
||||
columns[column_idx++]->insert(value);
|
||||
}
|
||||
|
||||
|
||||
static inline UInt64 time_in_seconds(std::chrono::time_point<std::chrono::system_clock> timepoint)
|
||||
{
|
||||
return std::chrono::duration_cast<std::chrono::seconds>(timepoint.time_since_epoch()).count();
|
||||
}
|
||||
|
||||
void AsynchronousMetricLog::addValues(const AsynchronousMetricValues & values)
|
||||
{
|
||||
AsynchronousMetricLogElement element;
|
||||
|
||||
const auto now = std::chrono::system_clock::now();
|
||||
element.event_time = time_in_seconds(now);
|
||||
element.event_time = time(nullptr);
|
||||
element.event_date = DateLUT::instance().toDayNum(element.event_time);
|
||||
|
||||
for (const auto & [key, value] : values)
|
||||
|
Loading…
Reference in New Issue
Block a user