diff options
author | Costa Tsaousis <costa@tsaousis.gr> | 2019-02-18 18:42:29 +0200 |
---|---|---|
committer | Chris Akritidis <43294513+cakrit@users.noreply.github.com> | 2019-02-18 17:42:29 +0100 |
commit | 4cf62f7eba36ce4182c87545554f2b2e4b3dc5e3 (patch) | |
tree | 1b101f5811c35b6f52035b477b08ae334907cb63 /collectors/cgroups.plugin | |
parent | e0d6a2f5fac251479c99463d70e65d9674a50796 (diff) |
remove redudant pipes (#5417)
Diffstat (limited to 'collectors/cgroups.plugin')
-rwxr-xr-x | collectors/cgroups.plugin/cgroup-network-helper.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/collectors/cgroups.plugin/cgroup-network-helper.sh b/collectors/cgroups.plugin/cgroup-network-helper.sh index 4ac25cec80..6905ce638c 100755 --- a/collectors/cgroups.plugin/cgroup-network-helper.sh +++ b/collectors/cgroups.plugin/cgroup-network-helper.sh @@ -199,7 +199,7 @@ netnsid_find_all_interfaces_for_pid() { set_source "netnsid" ip link show |\ grep -B 1 -E " link-netnsid ${nsid}($| )" |\ - ip link show | grep -B 1 -E " link-netnsid ${nsid}($| )" | sed -n -e "s|^[[:space:]]*[0-9]\+:[[:space:]]\+\([A-Za-z0-9_]\+\)\(@[A-Za-z0-9_]\+\)*:[[:space:]].*$|\1|p" + sed -n -e "s|^[[:space:]]*[0-9]\+:[[:space:]]\+\([A-Za-z0-9_]\+\)\(@[A-Za-z0-9_]\+\)*:[[:space:]].*$|\1|p" } netnsid_find_all_interfaces_for_cgroup() { |