mirror of
https://github.com/cwinfo/yggdrasil-go.git
synced 2024-11-26 08:21:36 +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
|
infos[info.key] = info
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
addInfo(sessions, "fillcolor=indianred style=filled")
|
addInfo(sessions, "fillcolor=\"#acf3fd\" style=filled") // blue
|
||||||
addInfo(dht, "fillcolor=lightblue style=filled")
|
addInfo(dht, "fillcolor=\"#ffffff\" style=filled") // white
|
||||||
addInfo(peers, "fillcolor=palegreen style=filled")
|
addInfo(peers, "fillcolor=\"#ffffb5\" style=filled") // yellow
|
||||||
addInfo(append([]admin_nodeInfo(nil), *self), "")
|
addInfo(append([]admin_nodeInfo(nil), *self), "fillcolor=\"#a5ff8a\" style=filled") // green
|
||||||
// Get coords as a slice of strings, FIXME? this looks very fragile
|
// Get coords as a slice of strings, FIXME? this looks very fragile
|
||||||
coordSlice := func(coords string) []string {
|
coordSlice := func(coords string) []string {
|
||||||
tmp := strings.Replace(coords, "[", "", -1)
|
tmp := strings.Replace(coords, "[", "", -1)
|
||||||
|
Loading…
Reference in New Issue
Block a user