aboutsummaryrefslogtreecommitdiffstats
path: root/planning/planning.cpp
diff options
context:
space:
mode:
authorSteinar H. Gunderson <sgunderson@bigfoot.com>2014-04-11 21:18:42 +0200
committerSteinar H. Gunderson <sgunderson@bigfoot.com>2014-04-11 21:18:42 +0200
commitba98c2dee5112f97790336e8cc7122db2cc6795b (patch)
tree7677a075070aaf743ba8dec10787988948915a2c /planning/planning.cpp
parent1d6334b64f75586927c4b9fbc62bdf453334e249 (diff)
Tiny cleanup.
Diffstat (limited to 'planning/planning.cpp')
-rw-r--r--planning/planning.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/planning/planning.cpp b/planning/planning.cpp
index 6901966..5b162db 100644
--- a/planning/planning.cpp
+++ b/planning/planning.cpp
@@ -549,8 +549,6 @@ int Planner::do_work(int distro_placements[NUM_DISTRO])
{
memcpy(this->distro_placements, distro_placements, sizeof(distro_placements[0]) * NUM_DISTRO);
- num_ports_used.clear();
-
Inventory total_inv;
unsigned total_cost = 0, total_slack = 0;
@@ -639,6 +637,7 @@ int Planner::do_work(int distro_placements[NUM_DISTRO])
FILE *patchlist = fopen("patchlist.txt", "w");
FILE *switchlist = fopen("switches.txt", "w");
in_addr_t subnet_address = inet_addr(FIRST_SUBNET_ADDRESS);
+ num_ports_used.clear();
for (unsigned i = 0; i < switches.size(); ++i) {
const auto distro_it = switches_to_distros.find(i);
if (distro_it == switches_to_distros.end()) {