View | Details | Raw Unified | Return to bug 1333
Collapse All | Expand All

(-)a/src/internet/model/rtt-estimator.cc (-1 / +2 lines)
 Lines 76-81    Link Here 
76
RttEstimator::SetEstimate (Time estimate)
76
RttEstimator::SetEstimate (Time estimate)
77
{
77
{
78
  est = estimate;
78
  est = estimate;
79
  initialEst = est;
79
}
80
}
80
Time 
81
Time 
81
RttEstimator::GetEstimate (void) const
82
RttEstimator::GetEstimate (void) const
 Lines 183-189    Link Here 
183
void RttEstimator::Reset ()
184
void RttEstimator::Reset ()
184
{ // Reset to initial state
185
{ // Reset to initial state
185
  next = 1;
186
  next = 1;
186
  est = 1; // XXX: we should go back to the 'initial value' here. Need to add support in Object for this.
187
  est = initialEst; // XXX: we should go back to the 'initial value' here. Need to add support in Object for this.
187
  history.clear ();         // Remove all info from the history
188
  history.clear ();         // Remove all info from the history
188
  nSamples = 0;
189
  nSamples = 0;
189
  ResetMultiplier ();
190
  ResetMultiplier ();
(-)a/src/internet/model/rtt-estimator.h (+1 lines)
 Lines 80-85    Link Here 
80
  double m_maxMultiplier;
80
  double m_maxMultiplier;
81
public:
81
public:
82
  int64x64_t       est;     // Current estimate
82
  int64x64_t       est;     // Current estimate
83
  int64x64_t       initialEst; // Initial value for estimate
83
  int64x64_t       minrto; // minimum value of the timeout
84
  int64x64_t       minrto; // minimum value of the timeout
84
  uint32_t      nSamples; // Number of samples
85
  uint32_t      nSamples; // Number of samples
85
  double       multiplier;   // RTO Multiplier
86
  double       multiplier;   // RTO Multiplier

Return to bug 1333