diff options
author | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-10-24 20:14:42 +0100 |
---|---|---|
committer | Manuel Palenzuela <manuelpalenzuelamerino@gmail.com> | 2019-10-24 20:14:42 +0100 |
commit | 8a259103551d200fc5b5b641e36b7eada0728759 (patch) | |
tree | bbe6e514e6111772728ac7ae2fa1b0516f2f0620 /modules/networkuptraffic | |
parent | 549ccc0f41f20dfce4d3da52a4ff5199a2c03c08 (diff) |
Added a delta var for the network up and down modules
Diffstat (limited to 'modules/networkuptraffic')
-rwxr-xr-x | modules/networkuptraffic | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/modules/networkuptraffic b/modules/networkuptraffic index 6907928..5c7dc13 100755 --- a/modules/networkuptraffic +++ b/modules/networkuptraffic @@ -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 |