Use CurrentMetrics::Metric over ProfileEvents::Event (cosmetic, both are size_t)

This commit is contained in:
Azat Khuzhin 2020-08-27 00:43:00 +03:00
parent 25eb53636d
commit d04d652ad4

View File

@ -27,7 +27,7 @@ Block MetricLogElement::createBlock()
{ {
std::string name; std::string name;
name += "CurrentMetric_"; name += "CurrentMetric_";
name += CurrentMetrics::getName(ProfileEvents::Event(i)); name += CurrentMetrics::getName(CurrentMetrics::Metric(i));
columns_with_type_and_name.emplace_back(std::make_shared<DataTypeInt64>(), std::move(name)); columns_with_type_and_name.emplace_back(std::make_shared<DataTypeInt64>(), std::move(name));
} }