rsingla92/CPUScheduler — pull request #65 by lordy1992 (2013-03-17 10:24:06+00:00)
Title: Parse fix

This is my fix to make the file parser capable of dealing with bad input. It goes through and extracts all correct data, discarding any lines that have bad input.

If a line gives a non-integer value where it is expecting an integer, the entire line is discarded and the parser moves on to the next. Similarly, if the TNCPU passed in as data does not match the actual number of CPU bursts, the line is discarded.

Check out the bad_process.txt file I put in the test folder. It'll be able to handle that, extracting all of the valid lines of input.