Commit 50e519b3 authored by Morten Knutsen's avatar Morten Knutsen
Browse files

Really fix anycast coloring bug.

parent 47baf3fe
......@@ -173,13 +173,11 @@ class PlotUI:
ci = 0
for group in data['acnodes'] + ['multi']:
if not group in PlotUI.nodecolors:
if ci < len(PlotUI.areacolors):
PlotUI.nodecolors[group] = PlotUI.areacolors[ci]
ci += 1
else:
PlotUI.nodecolors[group] = random.choice(PlotUI.areacolors)
if ci < len(PlotUI.areacolors):
PlotUI.nodecolors[group] = PlotUI.areacolors[ci]
ci += 1
else:
PlotUI.nodecolors[group] = random.choice(PlotUI.areacolors)
nodecolors = []
for i in range(len(nodes)):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment