Added a delta var for the network up and down modules

This commit is contained in:
Manuel Palenzuela 2019-10-24 20:14:42 +01:00
parent 549ccc0f41
commit 8a25910355
2 changed files with 6 additions and 4 deletions

View file

@ -1,11 +1,12 @@
#!/bin/bash
# Prints out the current down network traffic in DJNADJNA
# Prints out the current down network traffic in MB
PREFIX=' '
get_down_traffic()
{
DELTA=2
RECIEVE1=0
RECIEVE2=0
@ -16,7 +17,7 @@ get_down_traffic()
fi
done
sleep 2
sleep $DELTA
IFACES=$(ip -o link show | awk -F': ' '{print $2}')
for IFACE in $IFACES; do

View file

@ -1,11 +1,12 @@
#!/bin/bash
# Prints out the current up network traffic in DJNADJNA
# Prints out the current up network traffic in MB
PREFIX=' '
get_up_traffic()
{
DELTA=2
TRANSMIT1=0
TRANSMIT2=0
@ -16,7 +17,7 @@ get_up_traffic()
fi
done
sleep 2
sleep $DELTA
IFACES=$(ip -o link show | awk -F': ' '{print $2}')
for IFACE in $IFACES; do