diff options
-rw-r--r-- | planning/planning.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/planning/planning.cpp b/planning/planning.cpp index 1a17042..1880a15 100644 --- a/planning/planning.cpp +++ b/planning/planning.cpp @@ -322,7 +322,7 @@ string distro_name(unsigned distro) string port_name(unsigned distro, unsigned portnum) { char buf[16]; - int distros[] = { 0, 1, 2 }; // must equal number of times called, defines name of port/member of stack + int distros[] = { 0, 1, 2 }; // must equal the number of switches in distro-stack sprintf(buf, "ge-%u/0/%u", distros[portnum / 48], (portnum % 48)); return buf; } |