changes to helixeps script for telegraf

This commit is contained in:
m0duspwnens
2020-02-11 17:43:05 -05:00
parent c6a7543366
commit 73d5b637ad

View File

@@ -13,12 +13,12 @@ if [ ! -z "$EVENTCOUNTCURRENT" ]; then
fi
echo "${EVENTCOUNTCURRENT}" > $PREVCOUNTFILE
EVENTS=$((EVENTCOUNTCURRENT - EVENTCOUNTPREVIOUS))
EVENTS=$(((EVENTCOUNTCURRENT - EVENTCOUNTPREVIOUS)/30))
if [ "$EVENTS" -lt 0 ]; then
EVENTS=0
fi
echo "helixeps eps=${EVENTS}"
echo "helixeps eps=${EVENTS%%.*}"
fi