mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 23:52:03 +00:00
Reverted switch case indentation
This commit is contained in:
parent
4103700aa6
commit
b8d447297b
@ -55,24 +55,24 @@ TasksStatsCounters::TasksStatsCounters(const UInt64 tid, const MetricsProvider p
|
||||
{
|
||||
switch (provider)
|
||||
{
|
||||
case MetricsProvider::Netlink:
|
||||
stats_getter = [metrics_provider = std::make_shared<TaskStatsInfoGetter>(), tid]()
|
||||
{
|
||||
::taskstats result;
|
||||
metrics_provider->getStat(result, tid);
|
||||
return result;
|
||||
};
|
||||
break;
|
||||
case MetricsProvider::Procfs:
|
||||
stats_getter = [metrics_provider = std::make_shared<ProcfsMetricsProvider>(tid)]()
|
||||
{
|
||||
::taskstats result;
|
||||
metrics_provider->getTaskStats(result);
|
||||
return result;
|
||||
};
|
||||
break;
|
||||
case MetricsProvider::None:
|
||||
;
|
||||
case MetricsProvider::Netlink:
|
||||
stats_getter = [metrics_provider = std::make_shared<TaskStatsInfoGetter>(), tid]()
|
||||
{
|
||||
::taskstats result;
|
||||
metrics_provider->getStat(result, tid);
|
||||
return result;
|
||||
};
|
||||
break;
|
||||
case MetricsProvider::Procfs:
|
||||
stats_getter = [metrics_provider = std::make_shared<ProcfsMetricsProvider>(tid)]()
|
||||
{
|
||||
::taskstats result;
|
||||
metrics_provider->getTaskStats(result);
|
||||
return result;
|
||||
};
|
||||
break;
|
||||
case MetricsProvider::None:
|
||||
;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user