Skip to content

Commit

Permalink
pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
egecetin committed May 11, 2024
1 parent 82a8d93 commit b03aabd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,3 @@ jobs:
external-data-json-path: ./cache/benchmark_result.json
fail-on-alert: true
summary-always: true

4 changes: 2 additions & 2 deletions Tests/Benchmarks/benchmark.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@ static void BM_PcapPacketParsing(benchmark::State& state)


std::unordered_map<pcpp::ProtocolType, size_t> layerTypes;
for (auto &element : layerTypeStrings)
for (const auto &element : layerTypeStrings)
{
layerTypes[element.first] = 0;
}

std::unordered_map<pcpp::OsiModelLayer, size_t> osiLayers;
for (auto &element : osiLayerStrings)
for (const auto &element : osiLayerStrings)
{
osiLayers[element.first] = 0;
}
Expand Down

0 comments on commit b03aabd

Please sign in to comment.