Update network_ping.sh

This commit is contained in:
adrianmihalko 2021-12-23 00:55:35 +01:00
parent 45ad8cdafd
commit a0987b8b96

View file

@ -15,7 +15,7 @@ ping_function() {
# storing the hostname/IP in the variable PINGSERVER, default is google.com
pingserver=$(get_tmux_option "@dracula-ping-server" "google.com")
pingtime=$(ping -c 1 "$pingserver" | tail -1 | awk '{print $4}' | cut -d '/' -f 2)
echo $pingtime
echo "$pingtime ms"
;;
CYGWIN* | MINGW32* | MSYS* | MINGW*)