projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3142538
)
util/happinessutil.py: suppress a warning from check-miscaptures. (It is not a bug...
author
david-sarah
<david-sarah@jacaranda.org>
Sun, 9 Oct 2011 05:21:06 +0000
(22:21 -0700)
committer
david-sarah
<david-sarah@jacaranda.org>
Sun, 9 Oct 2011 05:21:06 +0000
(22:21 -0700)
src/allmydata/util/happinessutil.py
patch
|
blob
|
history
diff --git
a/src/allmydata/util/happinessutil.py
b/src/allmydata/util/happinessutil.py
index 33ba5673432ec807ce8f02043cace22801617905..b8e8b542107c4fdf9403ec440d3eee4899edcbeb 100644
(file)
--- a/
src/allmydata/util/happinessutil.py
+++ b/
src/allmydata/util/happinessutil.py
@@
-147,7
+147,8
@@
def servers_of_happiness(sharemap):
# is the amount of unused capacity on that edge. Taking the
# minimum of a list of those values for each edge in the
# augmenting path gives us our delta.
- delta = min(map(lambda (u, v): residual_function[u][v], path))
+ delta = min(map(lambda (u, v), rf=residual_function: rf[u][v],
+ path))
for (u, v) in path:
flow_function[u][v] += delta
flow_function[v][u] -= delta