From a2df5107f062845d04334360fafc0697c8be9ec0 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Fri, 1 Jun 2018 14:20:47 +0100 Subject: [PATCH] Change colour scheme: green for self, yellow for peer, blue for open session, white for DHT --- src/yggdrasil/admin.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/yggdrasil/admin.go b/src/yggdrasil/admin.go index 395461d0..c96bcfd1 100644 --- a/src/yggdrasil/admin.go +++ b/src/yggdrasil/admin.go @@ -579,10 +579,10 @@ func (a *admin) getResponse_dot() []byte { infos[info.key] = info } } - addInfo(sessions, "fillcolor=indianred style=filled") - addInfo(dht, "fillcolor=lightblue style=filled") - addInfo(peers, "fillcolor=palegreen style=filled") - addInfo(append([]admin_nodeInfo(nil), *self), "") + addInfo(sessions, "fillcolor=\"#acf3fd\" style=filled") // blue + addInfo(dht, "fillcolor=\"#ffffff\" style=filled") // white + addInfo(peers, "fillcolor=\"#ffffb5\" style=filled") // yellow + addInfo(append([]admin_nodeInfo(nil), *self), "fillcolor=\"#a5ff8a\" style=filled") // green // Get coords as a slice of strings, FIXME? this looks very fragile coordSlice := func(coords string) []string { tmp := strings.Replace(coords, "[", "", -1)