Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions orchagent/high_frequency_telemetry/counternameupdater.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,18 +40,15 @@ void CounterNameMapUpdater::setCounterNameMap(const std::vector<swss::FieldValue
{
SWSS_LOG_ENTER();

if (gHFTOrch)
for (const auto& map : counter_name_maps)
{
for (const auto& map : counter_name_maps)
const std::string& counter_name = fvField(map);
sai_object_id_t oid = SAI_NULL_OBJECT_ID;
if (!fvValue(map).empty())
{
const std::string& counter_name = fvField(map);
sai_object_id_t oid = SAI_NULL_OBJECT_ID;
if (!fvValue(map).empty())
{
sai_deserialize_object_id(fvValue(map), oid);
}
setCounterNameMap(counter_name, oid);
sai_deserialize_object_id(fvValue(map), oid);
}
setCounterNameMap(counter_name, oid);
}
}

Expand Down
Loading