Merge fix-zero-bool-bug-820104.

This commit is contained in:
Daniel Nichter
2012-06-11 20:52:35 -04:00
3 changed files with 4 additions and 13 deletions

View File

@@ -6444,7 +6444,7 @@ sub header {
next unless exists $results->{globals}->{$attrib};
my $store = $results->{globals}->{$attrib};
if ( $store->{sum} > 0 || $args{zero_bool} ) {
if ( $store->{sum} > 0 ) {
push @result,
sprintf $self->{bool_format},
$self->make_label($attrib), $self->bool_percents($store);
@@ -6731,7 +6731,7 @@ sub event_report {
my $vals = $store->{$attrib};
next unless scalar %$vals;
if ( $vals->{sum} > 0 || $args{zero_bool} ) {
if ( $vals->{sum} > 0 ) {
push @result,
sprintf $self->{bool_format},
$self->make_label($attrib), $self->bool_percents($vals);
@@ -15520,12 +15520,6 @@ default: yes
Zero out the Rows_XXX properties for administrator command events.
=item --[no]zero-bool
default: yes
Print 0% boolean values in report.
=back
=head1 DSN OPTIONS

View File

@@ -204,7 +204,6 @@ sub files {
# * orderby scalar: attrib items ordered by
# Optional arguments:
# * select arrayref: attribs to print, mostly for testing
# * zero_bool bool: print zero bool values (0%)
# Print a report about the global statistics in the EventAggregator.
# Formerly called "global_report()."
sub header {
@@ -296,7 +295,7 @@ sub header {
next unless exists $results->{globals}->{$attrib};
my $store = $results->{globals}->{$attrib};
if ( $store->{sum} > 0 || $args{zero_bool} ) {
if ( $store->{sum} > 0 ) {
push @result,
sprintf $self->{bool_format},
$self->make_label($attrib), $self->bool_percents($store);
@@ -485,7 +484,6 @@ sub query_report {
# * select arrayref: attribs to print, mostly for testing
# * reason scalar: why this item is being reported (top|outlier)
# * rank scalar: item rank among the worst
# * zero_bool bool: print zero bool values (0%)
# Print a report about the statistics in the EventAggregator.
# Called by query_report().
sub event_report {
@@ -648,7 +646,7 @@ sub event_report {
my $vals = $store->{$attrib};
next unless scalar %$vals;
if ( $vals->{sum} > 0 || $args{zero_bool} ) {
if ( $vals->{sum} > 0 ) {
push @result,
sprintf $self->{bool_format},
$self->make_label($attrib), $self->bool_percents($vals);

View File

@@ -536,7 +536,6 @@ $result = $qrf->header(
ea => $ea,
# select => [ $ea->get_attributes() ],
orderby => 'Query_time',
zero_bool => 0,
);
ok(