mirror of
https://github.com/yggdrasil-network/yggdrasil-go.git
synced 2024-11-23 18:15:24 +00:00
Change colour scheme: green for self, yellow for peer, blue for open session, white for DHT
This commit is contained in:
parent
ca15bbea57
commit
a2df5107f0
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user