From cd5611b8b38834fd50cc69fa91910a6ed110137a Mon Sep 17 00:00:00 2001 From: Daniel Nichter Date: Fri, 4 Nov 2011 10:15:20 -0600 Subject: [PATCH 1/2] Change mext to pt-mext. --- bin/pt-sift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/pt-sift b/bin/pt-sift index 21d723bf..25b4d175 100755 --- a/bin/pt-sift +++ b/bin/pt-sift @@ -23,7 +23,7 @@ print_help() { * View all the files in less d Invoke 'diskstats' on the disk performance data i View the first INNODB STATUS sample in 'less' - m Invoke 'mext' to show the SHOW STATUS counters side by side + m Invoke 'pt-mext' to show the SHOW STATUS counters side by side n Summarize the 'netstat -antp' status data --- NAVIGATION --- j Select the next timestamp @@ -373,10 +373,10 @@ main() { MEXT) echo "Displaying the first 4 samples of SHOW STATUS counters" - # Grab the first 4 samples by looking for blank lines. I'll rewrite - # mext and this will be simpler in future. TODO: upgrade, if mext is - # fixed :) - awk '/---/{if(i++>12){exit}}{print}' "${BASEDIR}/${PREFIX}-mysqladmin" | mext -r -- cat - | less -S + # Grab the first 4 samples by looking for blank lines. + # I'll rewrite pt-mext and this will be simpler in future. + # TODO: upgrade, if pt-mext is fixed :) + awk '/---/{if(i++>12){exit}}{print}' "${BASEDIR}/${PREFIX}-mysqladmin" | pt-mext -r -- cat - | less -S echo "Press a key to continue or choose a different action" ;; From aa1b0802a246ba84777ec663f680e6fb5c09ea41 Mon Sep 17 00:00:00 2001 From: Daniel Nichter Date: Fri, 4 Nov 2011 10:22:34 -0600 Subject: [PATCH 2/2] Use $PR_mext instead of pt-mext. --- bin/pt-sift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/pt-sift b/bin/pt-sift index 25b4d175..73560c13 100755 --- a/bin/pt-sift +++ b/bin/pt-sift @@ -376,7 +376,7 @@ main() { # Grab the first 4 samples by looking for blank lines. # I'll rewrite pt-mext and this will be simpler in future. # TODO: upgrade, if pt-mext is fixed :) - awk '/---/{if(i++>12){exit}}{print}' "${BASEDIR}/${PREFIX}-mysqladmin" | pt-mext -r -- cat - | less -S + awk '/---/{if(i++>12){exit}}{print}' "${BASEDIR}/${PREFIX}-mysqladmin" | $PR_mext -r -- cat - | less -S echo "Press a key to continue or choose a different action" ;;