fixed error in numberOfQueuedPayloads in fr_fcfs
This commit is contained in:
@@ -168,8 +168,8 @@ void Simulation::report(string message)
|
||||
unsigned int Simulation::getNumberOfLines(string uri)
|
||||
{
|
||||
std::ifstream file(uri);
|
||||
file.unsetf(std::ios_base::skipws); // new lines will be skipped unless we stop it from happening:
|
||||
// count the newlines with an algorithm specialized for counting:
|
||||
// count the newlines
|
||||
file.unsetf(std::ios_base::skipws);
|
||||
unsigned lineCount = std::count(std::istream_iterator<char>(file), std::istream_iterator<char>(), '\n');
|
||||
return lineCount;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user