Slightly speed up unordered iteration of FlowStatMap

This commit is contained in:
Jonathan G Rennison
2024-01-16 23:15:56 +00:00
parent 4458d3b61c
commit 81c2c4a881
3 changed files with 9 additions and 3 deletions

View File

@@ -2109,7 +2109,7 @@ class NIHStationStruct : public NIHelper {
}
if (ge->data != nullptr && ge->data->flows.size() > 0) {
size_t total_shares = 0;
for (const FlowStat &fs : ge->data->flows) {
for (const FlowStat &fs : ge->data->flows.IterateUnordered()) {
total_shares += fs.size();
}
seprintf(buffer, lastof(buffer), " Flows: %u, total shares: %u", (uint)ge->data->flows.size(), (uint)total_shares);