From 81881f455c116e28016b9d4e47caf5fc9b0678f6 Mon Sep 17 00:00:00 2001 From: Joachim Tingvold Date: Wed, 17 Feb 2016 21:33:55 +0100 Subject: Ehr, cosmetics. --- planning/planning.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'planning/planning.cpp') 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; } -- cgit v1.2.3