...
 
Commits (2)
......@@ -519,6 +519,7 @@ typedef struct tcb {
u_long num_sacks;
u_long max_sack_blocks;
u_long num_dsacks;
u_long sack_amount;
/* for computing LEAST (see FAQ) */
enum tcp_strains { TCP_RENO, TCP_SACK, TCP_DSACK } tcp_strain;
......
......@@ -2911,10 +2911,9 @@ nextrpc:
total_elapsed_time = (elapsed(ptp_save->first_time, ptp_save->last_time))/1000000;
thisdir->owin_wavg += (u_llong)((thisdir->previous_owin_sample) * sample_elapsed_time);
/* graph owin_wavg */
if (thisdir->owin_plotter != NO_PLOTTER) {
if (thisdir->owin_plotter != NO_PLOTTER)
extend_line(thisdir->owin_wavg_line, thisdir->previous_owin_sample_time,
(total_elapsed_time)?((u_llong)((thisdir->owin_wavg)/total_elapsed_time)):0);
}
thisdir->previous_owin_sample_time = thisdir->last_time;
thisdir->previous_owin_sample = owin;
}
......@@ -2926,7 +2925,12 @@ nextrpc:
extend_line(thisdir->rwin_line, current_time,
otherdir->win_last);
extend_line(thisdir->owin_avg_line, current_time,
thisdir->owin_count?(thisdir->owin_tot/thisdir->owin_count):0);
thisdir->owin_count ? thisdir->owin_tot/thisdir->owin_count : 0);
if (cwr || ecn_ce) {
plotter_temp_color(thisdir->owin_plotter, ecn_color);
plotter_text(thisdir->owin_plotter, current_time, owin, "a",
cwr ? (ecn_ce ? "CWR CE" : "CWR") : "CE");
}
}
}
if (run_continuously)
......