From 0c0386264c7a08cea15cd8794aa9220df7d110e7 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 2 Feb 2014 16:04:00 +0100 Subject: Remove duplicates from delay and qos messages --- bin/db-iris | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'bin') diff --git a/bin/db-iris b/bin/db-iris index 2ac75e1..1dd6ede 100755 --- a/bin/db-iris +++ b/bin/db-iris @@ -200,8 +200,7 @@ sub display_result { if ( $edata{delays} and $d->delay_messages ) { - printf( ' %s', - join( q{ }, map { $_->[1] } ( reverse $d->delay_messages ) ) ); + printf( ' %s', join( q{ }, map { $_->[1] } $d->delay_messages ) ); } if ( $edata{delay} and ( $d->delay or $d->is_cancelled ) @@ -210,8 +209,7 @@ sub display_result { printf( ' %s', ( $d->delay_messages )[-1]->[1] ); } if ( $edata{qos} and $d->qos_messages ) { - printf( ' %s', - join( q{ }, map { $_->[1] } ( reverse $d->qos_messages ) ) ); + printf( ' %s', join( q{ }, map { $_->[1] } $d->qos_messages ) ); } print "\n"; @@ -233,7 +231,7 @@ sub display_result { } if ( $edata{messages} ) { - for my $message ( reverse $d->messages ) { + for my $message ( $d->messages ) { # leading spaces to align with regular output printf( " %s %s\n", @@ -520,7 +518,7 @@ None. =head1 BUGS AND LIMITATIONS -B<-oD> and B<-oq> contain duplicate entries. +Unknown. =head1 AUTHOR -- cgit v1.2.3