summaryrefslogtreecommitdiff
path: root/bin/db-iris
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-02-02 16:04:00 +0100
committerDaniel Friesel <derf@finalrewind.org>2014-02-02 16:04:00 +0100
commit0c0386264c7a08cea15cd8794aa9220df7d110e7 (patch)
tree9345d290d01f50ad72e72428858594c7ee71763a /bin/db-iris
parent7bbd09e68aba30218694d580f48f8a1a1d59aa34 (diff)
Remove duplicates from delay and qos messages
Diffstat (limited to 'bin/db-iris')
-rwxr-xr-xbin/db-iris10
1 files changed, 4 insertions, 6 deletions
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