itarg = m_target_stat.find(target);
if (itarg != m_target_stat.end()
&& itarg->second.packages
- < std::numeric_limits<unsigned int>::max()){
+ < std::numeric_limits<unsigned int>::max())
+ {
itarg->second.packages += 1;
// std:.cout << "add_package " << session_id << " " << target
// << " p:" << itarg->second.packages << "\n";
// << " s:" << itarg->second.sessions << "\n";
// clearing empty sessions and targets
- if (itarg->second.sessions == 0 && itarg->second.deads == 0 )
+ if (itarg->second.sessions == 0 && itarg->second.deads == 0)
{
m_target_stat.erase(itarg);
m_session_target.erase(isess);
{
unsigned int cost;
- if (target.size() != 0){
+ if (target.size() != 0)
+ {
std::map<std::string, TargetStat>::iterator itarg;
itarg = m_target_stat.find(target);
- if (itarg != m_target_stat.end()){
+ if (itarg != m_target_stat.end())
cost = itarg->second.cost();
- }
}
//std::cout << "cost " << target << " c:" << cost << "\n";
{
unsigned int dead;
- if (target.size() != 0){
+ if (target.size() != 0)
+ {
std::map<std::string, TargetStat>::iterator itarg;
itarg = m_target_stat.find(target);
- if (itarg != m_target_stat.end()){
+ if (itarg != m_target_stat.end())
dead = itarg->second.deads;
- }
}
//std::cout << "dead " << target << " d:" << dead << "\n";