mirror of
				https://github.com/gravitl/netmaker.git
				synced 2025-10-31 20:22:44 +08:00 
			
		
		
		
	fix error messages
This commit is contained in:
		| @@ -604,7 +604,7 @@ func pingServer(cfg *config.ClientConfig) error { | |||||||
| 	pinger.Timeout = 2 * time.Second | 	pinger.Timeout = 2 * time.Second | ||||||
| 	pinger.Run() | 	pinger.Run() | ||||||
| 	stats := pinger.Statistics() | 	stats := pinger.Statistics() | ||||||
| 	if stats.PacketLoss != 100 { | 	if stats.PacketLoss == 100 { | ||||||
| 		ncutils.PrintLog(fmt.Sprintf("lost packets when pinging server: packets sent:%d packets recieved: %d", stats.PacketsSent, stats.PacketsRecv), 1) | 		ncutils.PrintLog(fmt.Sprintf("lost packets when pinging server: packets sent:%d packets recieved: %d", stats.PacketsSent, stats.PacketsRecv), 1) | ||||||
| 		return errors.New("ping error") | 		return errors.New("ping error") | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Matthew R. Kasun
					Matthew R. Kasun