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