示例#1
0
void
plot_run(void)
{
	struct odflow_hash *phash;

	if (query.view == PROTO_VIEW){
		phash = proto_hash;
		add_timeslot(phash);
	} else {
		phash = ip_hash;
		add_timeslot(phash);
		phash = ip6_hash;
		add_timeslot(phash);
	}
	param_update_cntlist_index();
}
示例#2
0
bool RRSchedule::add_game(int home, int away)
{
    Vector mu;
    mu.push_back(home);
    mu.push_back(away);
    
    this_week_matchups.push_back(mu);
    
    courts.push_back(home);
    courts.push_back(away);
    
    if ((home >= 0) and (away >=0))
    {
        total_played[home]++;
        total_played[away]++;
        
        this_week_played[home] ++;
        this_week_played[away] ++;
        
        opponent_counts[home][away] ++;
        opponent_counts[away][home] ++;
    }
    
    //    print_Vector(courts);
    
    if (courts.size() == max_courts * 2)
        return add_timeslot();
    else
        return true;
}