mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 13:54:28 -07:00
removed unnecessary sed expr defenition
This commit is contained in:
parent
5afa0f4a00
commit
861585bcca
30 changed files with 74 additions and 74 deletions
|
@ -37,7 +37,7 @@ fi
|
|||
|
||||
# Parsing network interfaces
|
||||
ndev=$(cat /proc/net/dev)
|
||||
ifaces=$(echo "$ndev" |grep : |cut -f 1 -d : |sed -e "s/ //g")
|
||||
ifaces=$(echo "$ndev" |grep : |cut -f 1 -d : | sed "s/ //g")
|
||||
|
||||
# Parsing excludes
|
||||
for exclude in $(echo ${RRD_IFACE_EXCLUDE//,/ }); do
|
||||
|
@ -63,7 +63,7 @@ for iface in $ifaces; do
|
|||
|
||||
# Parsing device stats
|
||||
if [ "$period" = 'daily' ]; then
|
||||
x=$(echo "$ndev" |sed -e "s/^ *//" |grep "^$iface:" |sed -e "s/:/ /")
|
||||
x=$(echo "$ndev" |sed "s/^ *//" |grep "^$iface:" |sed "s/:/ /")
|
||||
rx=$(echo "$x" |awk '{print $2}')
|
||||
tx=$(echo "$x" |awk '{print $10}')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue