aboutsummaryrefslogtreecommitdiffstats
path: root/planning/planning.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'planning/planning.cpp')
-rw-r--r--planning/planning.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/planning/planning.cpp b/planning/planning.cpp
index 04dde6f..1e71b7c 100644
--- a/planning/planning.cpp
+++ b/planning/planning.cpp
@@ -382,7 +382,7 @@ int Planner::do_work(int distro_placements[NUM_DISTRO])
}
source_node.cost_from_source = 0;
- for (unsigned i = 0; i < switches.size(); ++i) {
+ for ( ;; ) {
Node *cheapest_unseen_node = NULL;
for (unsigned i = 0; i < all_nodes.size(); ++i) {
Node *n = all_nodes[i];
@@ -402,10 +402,9 @@ int Planner::do_work(int distro_placements[NUM_DISTRO])
// Yay, we found a path to the sink.
break;
}
-
cheapest_unseen_node->seen = true;
- // See if any of the edges out from this are feasible.
+ // Relax outgoing edges from this node.
for (unsigned i = 0; i < cheapest_unseen_node->edges.size(); ++i) {
Edge *e = cheapest_unseen_node->edges[i];
if (e->flow + 1 > e->capacity || e->reverse->flow - 1 > e->reverse->capacity) {
@@ -438,7 +437,7 @@ int Planner::do_work(int distro_placements[NUM_DISTRO])
}
end:
- logprintf("Augmented using %d paths.\n", num_paths, (unsigned)switches.size());
+ logprintf("Augmented using %d paths.\n", num_paths);
int last_row = 0, last_num = -1;
#if OUTPUT_FILES
in_addr_t subnet_address = inet_addr(FIRST_SUBNET_ADDRESS);
.21.0.39 Unnamed repository; edit this file 'description' to name the repository.MimesBrønn
aboutsummaryrefslogtreecommitdiffstats
path: root/config/sysvinit-thin.ugly
blob: 0155ff8c3b6b74cc3ed507c91132b2456eb17994 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75