LENA-77 PfFfMacScheduler::lastAveragedThroughput initialization
authorMarco Miozzo <marco.miozzo@cttc.es>
Mon, 18 Apr 2011 16:48:31 +0200
changeset 7968 3beb480fee94
parent 7967 6f425e7aaf39
child 7969 1b162a42b331
LENA-77 PfFfMacScheduler::lastAveragedThroughput initialization
src/lte/model/pf-ff-mac-scheduler.cc
--- a/src/lte/model/pf-ff-mac-scheduler.cc	Fri Apr 15 16:25:36 2011 +0200
+++ b/src/lte/model/pf-ff-mac-scheduler.cc	Mon Apr 18 16:48:31 2011 +0200
@@ -303,7 +303,14 @@
           flowStats.flowStart = Simulator::Now ();
           flowStats.totalBytesTransmitted = 0;
           flowStats.lastTtiBytesTrasmitted = 0;
-          flowStats.lastAveragedThroughput = 0.0;
+          if (params.m_logicalChannelConfigList.at (i).m_eRabGuaranteedBitrateDl != 0)
+            {
+              flowStats.lastAveragedThroughput = params.m_logicalChannelConfigList.at (i).m_eRabGuaranteedBitrateDl;
+            }
+          else
+            {
+              flowStats.lastAveragedThroughput = 1; // minimum bitrate -> high priority to new flows
+            }
           flowStats.rlcBufferReq.m_rlcTransmissionQueueSize = 0;
           flowStats.rlcBufferReq.m_rlcRetransmissionQueueSize = 0;
           flowStats.rlcBufferReq.m_rlcStatusPduSize = 0;