mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-11 11:42:50 +01:00
tell dc to use 4 decimal spot for suriloss calc
This commit is contained in:
@@ -44,7 +44,7 @@ if [ $CHECKIT == 2 ]; then
|
|||||||
TOTALPAST=$(($PASTPACKETS + $PASTDROP))
|
TOTALPAST=$(($PASTPACKETS + $PASTDROP))
|
||||||
TOTAL=$(($TOTALCURRENT - $TOTALPAST))
|
TOTAL=$(($TOTALCURRENT - $TOTALPAST))
|
||||||
|
|
||||||
LOSS=$(echo $DROPPED $TOTAL / p | dc)
|
LOSS=$(echo 4 k $DROPPED $TOTAL / p | dc)
|
||||||
echo "suridrop drop=$LOSS"
|
echo "suridrop drop=$LOSS"
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user