* Get the sum of all flows from this FlowStatMap. * @return sum of all flows. */
| 5316 | * @return sum of all flows. |
| 5317 | */ |
| 5318 | uint FlowStatMap::GetFlow() const |
| 5319 | { |
| 5320 | uint ret = 0; |
| 5321 | for (const auto &it : *this) { |
| 5322 | ret += (--(it.second.GetShares()->end()))->first; |
| 5323 | } |
| 5324 | return ret; |
| 5325 | } |
| 5326 | |
| 5327 | /** |
| 5328 | * Get the sum of flows via a specific station from this FlowStatMap. |