src/lte/model/tdmt-ff-mac-scheduler.cc
changeset 10769 2a65963e27ac
parent 10680 ace43d9baa17
child 10821 9d3ffeb97587
--- a/src/lte/model/tdmt-ff-mac-scheduler.cc	Wed Apr 30 20:54:05 2014 -0700
+++ b/src/lte/model/tdmt-ff-mac-scheduler.cc	Wed Apr 30 21:32:57 2014 -0700
@@ -1511,7 +1511,7 @@
       uldci.m_rbLen = rbPerFlow;
       bool allocated = false;
       NS_LOG_INFO (this << " RB Allocated " << rbAllocated << " rbPerFlow " << rbPerFlow << " flows " << nflows);
-      while ((!allocated)&&((rbAllocated + rbPerFlow - 1) < m_cschedCellConfig.m_ulBandwidth) && (rbPerFlow != 0))
+      while ((!allocated)&&((rbAllocated + rbPerFlow - m_cschedCellConfig.m_ulBandwidth) < 1) && (rbPerFlow != 0))
         {
           // check availability
           bool free = true;