From ea9118adf96d44ac590cbe5558f5d4f7fa5f6078 Mon Sep 17 00:00:00 2001 From: Marco Miozzo Date: Mon, 8 Apr 2013 16:25:35 +0200 Subject: [PATCH] Bug-fix: initialization missing for evaluating SINR in PHY Traces --- src/lte/model/lte-ue-phy.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lte/model/lte-ue-phy.cc b/src/lte/model/lte-ue-phy.cc index 1b2426d64..7a6427525 100644 --- a/src/lte/model/lte-ue-phy.cc +++ b/src/lte/model/lte-ue-phy.cc @@ -457,6 +457,8 @@ LteUePhy::GenerateCtrlCqiReport (const SpectrumValue& sinr) } double rsrp = sum / (double)rbNum; // averaged SINR among RBs + sum = 0.0; + rbNum = 0; for (it = sinr.ConstValuesBegin (); it != sinr.ConstValuesEnd (); it++) { sum += (*it);