diff options
Diffstat (limited to 'statuspage')
| -rwxr-xr-x | statuspage/checks/ntpd.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/statuspage/checks/ntpd.sh b/statuspage/checks/ntpd.sh index 1770dc8..c95807b 100755 --- a/statuspage/checks/ntpd.sh +++ b/statuspage/checks/ntpd.sh @@ -16,7 +16,7 @@ if [ "$NTPD_STATUS" != "ok" ]; then exit 0 fi -RAW=$(ntpq -c "rv 0 offset" 2>/dev/null | sed -n 's/.*offset=\([-0-9.]*\).*/\1/p') +RAW=$(ntpq -c "rv 0 offset" 2>/dev/null | sed -n 's/.*offset=\([-+0-9.]*\).*/\1/p') if [ -z "$RAW" ]; then json_line "host services" "clock offset" "no response" "warn" |
