# HG changeset patch # User Piotr Gawlowicz # Date 1417395543 -3600 # Node ID 292f3a51445163b19b4fa3ee75985e5bc7077bed # Parent 784cd41fbb614456dc20d65de4afc88cd4318983 Bug 1986 FIX diff -r 784cd41fbb61 -r 292f3a514451 src/lte/model/pss-ff-mac-scheduler.cc --- a/src/lte/model/pss-ff-mac-scheduler.cc Fri Nov 07 16:40:01 2014 +0100 +++ b/src/lte/model/pss-ff-mac-scheduler.cc Mon Dec 01 01:59:03 2014 +0100 @@ -1298,13 +1298,14 @@ { if (rbgMap.at (i) == true) continue; - if ((m_ffrSapProvider->IsDlRbgAvailableForUe (i, (*it).first)) == false) - continue; std::map ::iterator itMax = tdUeSet.end (); double metricMax = 0.0; for (it = tdUeSet.begin (); it != tdUeSet.end (); it++) { + if ((m_ffrSapProvider->IsDlRbgAvailableForUe (i, (*it).first)) == false) + continue; + // calculate PF weigth double weight = (*it).second.targetThroughput / (*it).second.lastAveragedThroughput; if (weight < 1.0) @@ -1373,11 +1374,10 @@ itMax = it; } } // end of tdUeSet - - if (itMax == m_flowStatsDl.end ()) + + if (itMax == tdUeSet.end ()) { - // no UE available for downlink - return; + // no UE available for downlink } else { @@ -1397,13 +1397,12 @@ if (rbgMap.at (i) == true) continue; - if ((m_ffrSapProvider->IsDlRbgAvailableForUe (i, (*it).first)) == false) - continue; - std::map ::iterator itMax = tdUeSet.end (); double metricMax = 0.0; for (it = tdUeSet.begin (); it != tdUeSet.end (); it++) { + if ((m_ffrSapProvider->IsDlRbgAvailableForUe (i, (*it).first)) == false) + continue; // calculate PF weigth double weight = (*it).second.targetThroughput / (*it).second.lastAveragedThroughput; if (weight < 1.0) @@ -1468,11 +1467,10 @@ itMax = it; } } // end of tdUeSet - - if (itMax == m_flowStatsDl.end ()) + + if (itMax == tdUeSet.end ()) { // no UE available for downlink - return; } else {