mirror of
				https://github.com/yggdrasil-network/yggdrasil-go.git
				synced 2025-10-31 09:15:07 +03:00 
			
		
		
		
	yggdrasilctl tweaks
				
					
				
			This commit is contained in:
		
							parent
							
								
									6ac2fae845
								
							
						
					
					
						commit
						a233e775eb
					
				
					 2 changed files with 2 additions and 3 deletions
				
			
		|  | @ -176,9 +176,9 @@ func run() int { | |||
| 		} | ||||
| 		table.SetHeader([]string{"URI", "State", "Dir", "IP Address", "Uptime", "RX", "TX", "Pr", "Last Error"}) | ||||
| 		for _, peer := range resp.Peers { | ||||
| 			state, lasterr, dir := "Up", "(none)", "Out" | ||||
| 			state, lasterr, dir := "Up", "-", "Out" | ||||
| 			if !peer.Up { | ||||
| 				state, lasterr = "Down", fmt.Sprintf("%s (%s ago)", peer.LastError, peer.LastErrorTime.Round(time.Second)) | ||||
| 				state, lasterr = "Down", fmt.Sprintf("%s ago: %s", peer.LastErrorTime.Round(time.Second), peer.LastError) | ||||
| 			} | ||||
| 			if peer.Inbound { | ||||
| 				dir = "In" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Neil Alexander
						Neil Alexander