aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/mapper/label.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/mapper/label.py b/lib/mapper/label.py
index 3298aea..02e2a18 100644
--- a/lib/mapper/label.py
+++ b/lib/mapper/label.py
@@ -77,9 +77,10 @@ def select_site( site_map ):
maxval = counter[site]
maxkey = site
elif counter.has_key(site) == False:
- counter[site] = 1
+ counter[site] = 0
if maxval == 0:
maxval = 1
maxkey = site
- node_site[node] = maxkey
+ node_site[node] = maxkey
+ counter[node_site[node]] = counter[node_site[node]] + 1
return node_site