mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Fix math for suri loss calulcations
This commit is contained in:
@@ -15,7 +15,7 @@ if [ $CHECKIT == 2 ]; then
|
|||||||
else
|
else
|
||||||
CURRENTPACKETS=${RESULT[9]}
|
CURRENTPACKETS=${RESULT[9]}
|
||||||
PASTPACKETS=${RESULT[19]}
|
PASTPACKETS=${RESULT[19]}
|
||||||
TOTAL=$(($CURRENTPACKETS - $PASTPACKETS))
|
TOTAL=$(($CURRENTPACKETS - $PASTPACKETS + $DROPPED))
|
||||||
|
|
||||||
LOSS=$(echo $DROPPED $TOTAL / p | dc)
|
LOSS=$(echo $DROPPED $TOTAL / p | dc)
|
||||||
echo "suridrop drop=$LOSS"
|
echo "suridrop drop=$LOSS"
|
||||||
|
|||||||
Reference in New Issue
Block a user