total cost = send time + max ping time + max within group delivery time
| 30 | |
| 31 | // total cost = send time + max ping time + max within group delivery time |
| 32 | static float CalcTreeCost(const TDistrTree& a, float sendTime) { |
| 33 | return (a.Children.ysize() - 1) * sendTime + a.MaxPing + a.Cost; |
| 34 | } |
| 35 | |
| 36 | struct TDistrTreeCmpCost { |
| 37 | float SendTime; |
no test coverage detected