Commit 624e03ac authored by Neil McGlohon's avatar Neil McGlohon

fix bw log bug

parent 71379b46
...@@ -1473,11 +1473,12 @@ void router_custom_setup(router_state * r, tw_lp * lp) ...@@ -1473,11 +1473,12 @@ void router_custom_setup(router_state * r, tw_lp * lp)
char rtr_bw_log[128]; char rtr_bw_log[128];
sprintf(rtr_bw_log, "router-bw-tracker-%d", g_tw_mynode); sprintf(rtr_bw_log, "router-bw-tracker-%d", g_tw_mynode);
dragonfly_rtr_bw_log = fopen(rtr_bw_log, "w"); if(dragonfly_rtr_bw_log == NULL)
{
dragonfly_rtr_bw_log = fopen(rtr_bw_log, "w+");
if(dragonfly_rtr_bw_log != NULL)
fprintf(dragonfly_rtr_bw_log, "\n router-id time-stamp port-id qos-level bw-consumed qos-status qos-data busy-time"); fprintf(dragonfly_rtr_bw_log, "\n router-id time-stamp port-id qos-level bw-consumed qos-status qos-data busy-time");
}
//printf("\n Local router id %d global id %d ", r->router_id, lp->gid); //printf("\n Local router id %d global id %d ", r->router_id, lp->gid);
// r->num_rtr_rc_windows = 100; // r->num_rtr_rc_windows = 100;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment