diff --git a/src/core/lib/transport/bdp_estimator.cc b/src/core/lib/transport/bdp_estimator.cc index 23e8117128d..546f21ac64c 100644 --- a/src/core/lib/transport/bdp_estimator.cc +++ b/src/core/lib/transport/bdp_estimator.cc @@ -30,12 +30,12 @@ grpc_core::TraceFlag grpc_bdp_estimator_trace(false, "bdp_estimator"); namespace grpc_core { BdpEstimator::BdpEstimator(absl::string_view name) - : ping_state_(PingState::UNSCHEDULED), - accumulator_(0), + : accumulator_(0), estimate_(65536), ping_start_time_(gpr_time_0(GPR_CLOCK_MONOTONIC)), inter_ping_delay_(Duration::Milliseconds(100)), // start at 100ms stable_estimate_count_(0), + ping_state_(PingState::UNSCHEDULED), bw_est_(0), name_(name) {} diff --git a/src/core/lib/transport/bdp_estimator.h b/src/core/lib/transport/bdp_estimator.h index 870f0dc47f3..619b07f75df 100644 --- a/src/core/lib/transport/bdp_estimator.h +++ b/src/core/lib/transport/bdp_estimator.h @@ -81,13 +81,13 @@ class BdpEstimator { private: enum class PingState { UNSCHEDULED, SCHEDULED, STARTED }; - PingState ping_state_; int64_t accumulator_; int64_t estimate_; // when was the current ping started? gpr_timespec ping_start_time_; Duration inter_ping_delay_; int stable_estimate_count_; + PingState ping_state_; double bw_est_; absl::string_view name_; };