Bug-fix: initialization missing for evaluating SINR in PHY Traces
authorMarco Miozzo <marco.miozzo@cttc.es>
Mon, 08 Apr 2013 16:27:42 +0200
changeset 9685 e2d696385b5e
parent 9643 ba61cb7864db
child 9686 1bc9e60169cc
Bug-fix: initialization missing for evaluating SINR in PHY Traces
src/lte/model/lte-ue-phy.cc
--- a/src/lte/model/lte-ue-phy.cc	Fri Jan 25 15:57:13 2013 +0100
+++ b/src/lte/model/lte-ue-phy.cc	Mon Apr 08 16:27:42 2013 +0200
@@ -470,6 +470,8 @@
         }
       double rsrp = sum / (double)rbNum;
       // averaged SINR among RBs
+      sum = 0.0;
+      rbNum = 0;
       for (it = sinr.ConstValuesBegin (); it != sinr.ConstValuesEnd (); it++)
         {
           sum += (*it);