summaryrefslogtreecommitdiffstats
path: root/retiolum
diff options
context:
space:
mode:
authormakefu <root@pigstarter.de>2013-01-06 04:43:53 +0000
committermakefu <root@pigstarter.de>2013-01-06 04:43:53 +0000
commitbba5171e63c88ae4b0850adc0a6bf49a55a19662 (patch)
tree43fbddc42adb8e46979f230730b5d482c0b6848b /retiolum
parent29d8a4e5061d66d0dfeda28a9012992c12a83ccd (diff)
adv_graphgen: no redundancy > being supernode
it is visually more important to see that a node has no redundancy that to see this node is a potential supernode
Diffstat (limited to 'retiolum')
-rwxr-xr-xretiolum/scripts/adv_graphgen/parse_tinc_stats.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/retiolum/scripts/adv_graphgen/parse_tinc_stats.py b/retiolum/scripts/adv_graphgen/parse_tinc_stats.py
index 03a20214..76a3ffcd 100755
--- a/retiolum/scripts/adv_graphgen/parse_tinc_stats.py
+++ b/retiolum/scripts/adv_graphgen/parse_tinc_stats.py
@@ -171,11 +171,12 @@ def write_node(k,v):
for addr in v.get('internal-ip',['¯\\\\(°_o)/¯']):
node += "internal:"+addr+"\\l"
node +="\""
- if k in supernodes:
- node += ",fillcolor=steelblue1"
+
# warning if node only has one connection
- elif v['num_conns'] == 1:
+ if v['num_conns'] == 1:
node += ",fillcolor=red"
+ elif k in supernodes:
+ node += ",fillcolor=steelblue1"
#node +=",group=\""+v['external-ip'].replace(".","")+"\""
node += "]"
print node