Merge add-ouptput-col-headers-bug-1059757.

This commit is contained in:
Daniel Nichter
2012-10-11 17:04:53 -06:00
2 changed files with 9 additions and 1 deletions

View File

@@ -1945,6 +1945,11 @@ sub main {
my $fi = new FileIterator();
my $tst = new TimeSeriesTrender(callback => \&print_report);
# Print headers.
# https://bugs.launchpad.net/percona-toolkit/+bug/956981
printf "%10s %10s %10s %10s %10s %10s\n",
qw(TS CNT SUM MIN MAX AVG STDDEV);
# ########################################################################
# If --pid, check it first since we'll die if it already exists.
# ########################################################################
@@ -2039,10 +2044,12 @@ if ( !caller ) { exit main(@ARGV); }
=head1 NAME
pt-trend - Compute statistics over a set of time-series data points.
pt-trend - (DEPRECATED) Compute statistics over a set of time-series data points.
=head1 SYNOPSIS
This tool is deprecated and will be removed in Percona Toolkit 2.2.
Usage: pt-trend [OPTION...] [FILE ...]
pt-trend reads a slow query log and outputs statistics on it.

View File

@@ -1,3 +1,4 @@
TS CNT SUM MIN MAX AVG
1297191601 1.000000 0.000012 0.000012 0.000012 0.000012
1297191602 1.000000 0.000012 0.000012 0.000012 0.000012
1297191603 1.000000 0.000012 0.000012 0.000012 0.000012