summaryrefslogtreecommitdiffstats
path: root/retiolum
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2013-01-08 04:51:58 +0700
committermakefu <github@syntax-fehler.de>2013-01-08 04:51:58 +0700
commit53375eb994411bd6f37e8b4d807cd51c49e102da (patch)
tree37582d8c42d4ecf5157a83f6d0c2098c953c61e5 /retiolum
parentfb0de4a92f22c3242b8a0807aeafc2f23f63b302 (diff)
parentad376d1dab439f9d28bf7ff02bfa7afed7444037 (diff)
Merge branch 'master' of github.com:krebscode/painload
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