diff --git a/salt/common/telegraf/scripts/helixeps.sh b/salt/common/telegraf/scripts/helixeps.sh index d9d708499..eee4f65c3 100644 --- a/salt/common/telegraf/scripts/helixeps.sh +++ b/salt/common/telegraf/scripts/helixeps.sh @@ -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