From 9ffb5af97287774c3cd175d616c9dbd2588bb113 Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Wed, 17 Sep 2014 14:20:01 +0400 Subject: [PATCH] =?UTF-8?q?bug:=20r=C3=A9sultats=20unifi=C3=A9s=20trop=20t?= =?UTF-8?q?=C3=B4t?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dumpclients | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/dumpclients b/dumpclients index dbdff1f..b4fff31 100755 --- a/dumpclients +++ b/dumpclients @@ -40,9 +40,9 @@ function print_conn() { function print_host() { local -a hosts if [ -n "$*" ]; then - while read ip state; do + while read count ip state; do resolv_hosts hosts "$ip" - echo "${hosts:-$ip}" "$state" + echo "$count" "${hosts:-$ip}" "$state" done else cat @@ -67,6 +67,6 @@ LANG=C netstat -tn ${all:+-a} | filter_proto "$proto" | filter_port "$port" | print_conn | -csort -u | -print_host $resolve | -"$scriptdir/umatch" -c -F "" +csort | +"$scriptdir/umatch" -c -F "" | +print_host $resolve