mirror of
https://github.com/aclist/dztui.git
synced 2026-11-16 14:51:53 +01:00
Compare commits
2
Commits
abf692e876
...
b253eebdd2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b253eebdd2 | ||
|
|
239a82876e |
@@ -503,7 +503,7 @@ check_availability() {
|
|||||||
if [[ $2 ]]; then
|
if [[ $2 ]]; then
|
||||||
timeout_sec=$2
|
timeout_sec=$2
|
||||||
fi
|
fi
|
||||||
if ! ping -w "$timeout_sec" "$url"; then
|
if ! ping -w "$timeout_sec" "$url" > /dev/null; then
|
||||||
logger WARN "Failed to reach $url, service may be down."
|
logger WARN "Failed to reach $url, service may be down."
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in new issue
Block a user