1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

fix on bandwidth

This commit is contained in:
suyuan 2023-10-21 11:33:37 +08:00
parent a00600a199
commit 8eab436ec2
2 changed files with 7 additions and 7 deletions

View file

@ -12,7 +12,7 @@ while [ 1 == 1 ] ; do
if [ $RXPREV -ne -1 ] ; then
let BWRX=$RX-$RXPREV
let BWTX=$TX-$TXPREV
echo "$BWRX $BWTX">/tmp/netspeed
echo "$((BWRX*8)) $(($BWTX*8))">/tmp/netspeed
fi
RXPREV=$RX
TXPREV=$TX