Skip to content

Commit c4b9ee1

Browse files
authored
ntp-server fix (#588)
1 parent 3519d4f commit c4b9ee1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snmp/ntp-server.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ if [ "$VER" = "4.2.6p5" ]; then
7575
else
7676
USECMD=$(echo "$BIN_NTPQ" -c iostats 127.0.0.1)
7777
fi
78-
CMD2=$($USECMD | $BIN_TR -d ' ' | $BIN_CUT -d : -f 2 | $BIN_TR '\n' ' ')
78+
CMD2=$($USECMD 2>/dev/null | $BIN_TR -d ' ' | $BIN_CUT -d : -f 2 | $BIN_TR '\n' ' ')
7979

8080
# shellcheck disable=SC2086
8181
TIMESINCERESET=$(echo $CMD2 | $BIN_AWK -F ' ' '{print $1}')

0 commit comments

Comments
 (0)