Commit 165c1184 authored by David G Andersen's avatar David G Andersen
Browse files

Fixed a small oops

parent c049a836
......@@ -54,9 +54,11 @@ topology *parse_phys(char *filename)
while (!infile.eof()) {
infile >> name;
if (infile.eof()) { break; }
if (infile.eof() || !infile.good()) { break; }
if (name[0] == '#') {
infile.getline(linebuf, 255);
} else if (name[0] == 0) {
continue;
} else {
int nodecount;
infile >> nodecount;
......
# Two switches, configured identically - 8 nodes with 4 interfaces
switch1 4 8
switch2 4 8
switch1 1 4 8
switch2 1 4 8
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment