Fixed bug in DlRlcStats

fixed typo in lte-spectrum-phy
This commit is contained in:
jnin
2011-06-06 10:56:10 +02:00
parent 6614880a83
commit e73cc9cd3e
2 changed files with 4 additions and 3 deletions

View File

@@ -291,7 +291,7 @@ RlcStatsCalculator::WriteDlResults (std::ofstream& outFile)
{
// Get the unique IMSI list
std::vector<ImsiLcidPair > pairVector;
for (Uint32Map::iterator it = m_ulTxPackets.begin(); it != m_ulTxPackets.end(); ++it)
for (Uint32Map::iterator it = m_dlTxPackets.begin(); it != m_dlTxPackets.end(); ++it)
{
if (find (pairVector.begin (), pairVector.end (), (*it).first ) == pairVector.end () )
{
@@ -351,6 +351,7 @@ RlcStatsCalculator::CheckEpoch (void)
{
if ( Simulator::Now () > m_startTime + m_epochDuration )
{
std::cout << "JNNNNNNNNNG New epoch! startTime " << m_startTime << " epoch duration " << m_epochDuration << std::endl;
ShowResults();
ResetResults();
StartEpoch();

View File

@@ -327,7 +327,7 @@ LteSpectrumPhy::StartRx (Ptr<PacketBurst> pb, Ptr <const SpectrumValue> rxPsd, S
switch (m_state)
{
case TX:
NS_FATAL_ERROR ("cannot RX while TX: according to FDD channel acces, the physical layer for transmission cannot be used for reception");
NS_FATAL_ERROR ("cannot RX while TX: according to FDD channel access, the physical layer for transmission cannot be used for reception");
break;
case IDLE:
@@ -366,7 +366,7 @@ LteSpectrumPhy::StartRx (Ptr<PacketBurst> pb, Ptr <const SpectrumValue> rxPsd, S
&& (m_firstRxDuration == duration));
}
ChangeState (RX);
ChangeState (RX);
m_interference->StartRx (rxPsd);
m_phyRxStartTrace (pb);