tell dc to use 4 decimal spot for suriloss calc

This commit is contained in:
m0duspwnens
2020-12-17 18:05:25 -05:00
parent 6ccbe47f10
commit 412e8eeccb

View File

@@ -44,7 +44,7 @@ if [ $CHECKIT == 2 ]; then
TOTALPAST=$(($PASTPACKETS + $PASTDROP))
TOTAL=$(($TOTALCURRENT - $TOTALPAST))
LOSS=$(echo $DROPPED $TOTAL / p | dc)
LOSS=$(echo 4 k $DROPPED $TOTAL / p | dc)
echo "suridrop drop=$LOSS"
fi
else