mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-11-04 11:15:07 +03: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
					
				
					 1 changed files with 4 additions and 4 deletions
				
			
		| 
						 | 
					@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue