examples: Do not prematurely call Simulator::Destroy ()
This commit is contained in:
@@ -527,7 +527,6 @@ int main (int argc, char *argv[])
|
||||
|
||||
Simulator::Stop (Seconds (simulationTime + 1));
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
|
||||
double throughput = 0;
|
||||
uint32_t totalPacketsThrough = 0;
|
||||
@@ -563,6 +562,7 @@ int main (int argc, char *argv[])
|
||||
std::setw (12) << "N/A" <<
|
||||
std::endl;
|
||||
}
|
||||
Simulator::Destroy ();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -589,7 +589,6 @@ int main (int argc, char *argv[])
|
||||
|
||||
Simulator::Stop (Seconds (simulationTime + 1));
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
|
||||
double throughput = 0;
|
||||
uint32_t totalPacketsThrough = 0;
|
||||
@@ -625,6 +624,7 @@ int main (int argc, char *argv[])
|
||||
std::setw (12) << "N/A" <<
|
||||
std::endl;
|
||||
}
|
||||
Simulator::Destroy ();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -686,7 +686,6 @@ int main (int argc, char *argv[])
|
||||
|
||||
Simulator::Stop (Seconds (simulationTime + 1));
|
||||
Simulator::Run ();
|
||||
Simulator::Destroy ();
|
||||
|
||||
double throughput;
|
||||
uint32_t totalPacketsThrough;
|
||||
@@ -699,6 +698,7 @@ int main (int argc, char *argv[])
|
||||
std::setw (12) << throughput <<
|
||||
std::setw (8) << totalPacketsThrough <<
|
||||
std::endl;
|
||||
Simulator::Destroy ();
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user