From f915e54a175c89631cc8d01598e37327c6f3abfd Mon Sep 17 00:00:00 2001 From: "Brian Fraser fraserb@gmail.com" <> Date: Tue, 27 Nov 2012 18:28:07 -0300 Subject: [PATCH] pt-mysql-summary: Make the "Executables" section work --- bin/pt-mysql-summary | 2 +- lib/bash/collect_mysql_info.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/pt-mysql-summary b/bin/pt-mysql-summary index bd8960cc..3c794eb8 100755 --- a/bin/pt-mysql-summary +++ b/bin/pt-mysql-summary @@ -921,7 +921,7 @@ get_mysqldump_args () { collect_mysqld_executables () { local mysqld_instances="$1" - for pid in $( grep '/mysqld' "$mysqld_instances" | awk '/^ .*[0-9]/{print $1}' ); do + for pid in $( grep '/mysqld' "$mysqld_instances" | awk '/^.*[0-9]/{print $1}' ); do ps -o cmd -p $pid | sed -e 's/^\(.*mysqld\) .*/\1/' | grep -v '^CMD$' done | sort -u } diff --git a/lib/bash/collect_mysql_info.sh b/lib/bash/collect_mysql_info.sh index ba35831a..df4bddcd 100644 --- a/lib/bash/collect_mysql_info.sh +++ b/lib/bash/collect_mysql_info.sh @@ -201,7 +201,7 @@ get_mysqldump_args () { collect_mysqld_executables () { local mysqld_instances="$1" - for pid in $( grep '/mysqld' "$mysqld_instances" | awk '/^ .*[0-9]/{print $1}' ); do + for pid in $( grep '/mysqld' "$mysqld_instances" | awk '/^.*[0-9]/{print $1}' ); do ps -o cmd -p $pid | sed -e 's/^\(.*mysqld\) .*/\1/' | grep -v '^CMD$' done | sort -u }