examples: Fix wrong results when tcp is selected in ht/vht/he wifi network examples

This commit is contained in:
Sébastien Deronne
2017-02-05 17:22:11 +01:00
parent 85b082d832
commit e7a33557c0
3 changed files with 3 additions and 3 deletions

View File

@@ -211,7 +211,7 @@ int main (int argc, char *argv[])
}
else
{
rxBytes = payloadSize * DynamicCast<PacketSink> (sinkApp.Get (0))->GetTotalRx ();
rxBytes = DynamicCast<PacketSink> (sinkApp.Get (0))->GetTotalRx ();
}
double throughput = (rxBytes * 8) / (simulationTime * 1000000.0); //Mbit/s
std::cout << mcs << "\t\t\t" << channelWidth << " MHz\t\t\t" << gi << " ns\t\t\t" << throughput << " Mbit/s" << std::endl;

View File

@@ -229,7 +229,7 @@ int main (int argc, char *argv[])
}
else
{
rxBytes = payloadSize * DynamicCast<PacketSink> (sinkApp.Get (0))->GetTotalRx ();
rxBytes = DynamicCast<PacketSink> (sinkApp.Get (0))->GetTotalRx ();
}
double throughput = (rxBytes * 8) / (simulationTime * 1000000.0); //Mbit/s
std::cout << mcs << "\t\t\t" << channelWidth << " MHz\t\t\t" << sgi << "\t\t\t" << throughput << " Mbit/s" << std::endl;

View File

@@ -216,7 +216,7 @@ int main (int argc, char *argv[])
}
else
{
rxBytes = payloadSize * DynamicCast<PacketSink> (sinkApp.Get (0))->GetTotalRx ();
rxBytes = DynamicCast<PacketSink> (sinkApp.Get (0))->GetTotalRx ();
}
double throughput = (rxBytes * 8) / (simulationTime * 1000000.0); //Mbit/s
std::cout << mcs << "\t\t\t" << channelWidth << " MHz\t\t\t" << sgi << "\t\t\t" << throughput << " Mbit/s" << std::endl;