diff --git a/checkin_notes b/checkin_notes index 16c69d0bac..4262755f70 100755 --- a/checkin_notes +++ b/checkin_notes @@ -120,3 +120,9 @@ Rom 6 Jan 2006 Rom 6 Jan 2006 (HEAD) - Tag for 5.3.8 release, all platforms boinc_core_release_5_3_8 + +David 6 Jan 2006 + - fix unitialized var + + client/ + net_stats.C diff --git a/client/net_stats.C b/client/net_stats.C index 5521da06c3..fd7a74e2b4 100644 --- a/client/net_stats.C +++ b/client/net_stats.C @@ -64,7 +64,7 @@ void NET_INFO::update(double dt, double nb, bool active) { } double NET_INFO::throughput() { - double x, tp, new_tp; + double x, tp, new_tp=0; if (starting_throughput > 0) { if (delta_t > 0) { x = exp(-delta_t*EXP_DECAY_RATE); @@ -75,6 +75,7 @@ double NET_INFO::throughput() { } } else if (delta_t > 0) { new_tp = delta_nbytes/delta_t; + } else { } #if 0 msg_printf(NULL, MSG_ERROR, "start %f delta_t %f delta_nb %f new_tp %f",