5
0
mirror of https://github.com/cwinfo/yggdrasil-go.git synced 2024-11-10 06:20:26 +00:00

Change colour scheme: green for self, yellow for peer, blue for open session, white for DHT

This commit is contained in:
Neil Alexander 2018-06-01 14:20:47 +01:00
parent ca15bbea57
commit a2df5107f0
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -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)