Reverted switch case indentation

This commit is contained in:
Andrey Skobtsov 2020-05-19 01:26:35 +03:00
parent 4103700aa6
commit b8d447297b

View File

@ -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:
;
}
}