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

(-)a/src/uan/model/uan-prop-model.cc (-2 / +4 lines)
 Lines 204-210    Link Here 
204
      NS_ASSERT_MSG (GetNTaps () == 1, "Attempted to sum taps over time interval in "
204
      NS_ASSERT_MSG (GetNTaps () == 1, "Attempted to sum taps over time interval in "
205
                     "UanPdp with resolution 0 and multiple taps");
205
                     "UanPdp with resolution 0 and multiple taps");
206
206
207
      return m_taps[0].GetAmp ();
207
      if(delay == 0) return m_taps[0].GetAmp ();
208
      return std::complex<double> (0.0, 0.0);
208
    }
209
    }
209
210
210
  uint32_t numTaps =  static_cast<uint32_t> (duration.GetSeconds () / m_resolution.GetSeconds () + 0.5);
211
  uint32_t numTaps =  static_cast<uint32_t> (duration.GetSeconds () / m_resolution.GetSeconds () + 0.5);
 Lines 236-242    Link Here 
236
      NS_ASSERT_MSG (GetNTaps () == 1, "Attempted to sum taps over time interval in "
237
      NS_ASSERT_MSG (GetNTaps () == 1, "Attempted to sum taps over time interval in "
237
                     "UanPdp with resolution 0 and multiple taps");
238
                     "UanPdp with resolution 0 and multiple taps");
238
239
239
      return std::abs (m_taps[0].GetAmp ());
240
      if(delay == 0) return std::abs (m_taps[0].GetAmp ());
241
      return 0;
240
    }
242
    }
241
243
242
  uint32_t numTaps =  static_cast<uint32_t> (duration.GetSeconds () / m_resolution.GetSeconds () + 0.5);
244
  uint32_t numTaps =  static_cast<uint32_t> (duration.GetSeconds () / m_resolution.GetSeconds () + 0.5);

Return to bug 2488