From c81ff6b6a0c58e927c61d59b03f142f400e31ef4 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 24 Apr 2004 12:01:04 +0000 Subject: Remove get_remailers since get_addresses does almost the same. Make sure we do not create empty key hashes in metadata. --- Echolot/Report.pm | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'Echolot/Report.pm') diff --git a/Echolot/Report.pm b/Echolot/Report.pm index 22e2bf9..9fa0784 100644 --- a/Echolot/Report.pm +++ b/Echolot/Report.pm @@ -24,7 +24,6 @@ sub print_summary(;$) { my ($manual) = @_; my @addresses = sort { $a->{'address'} cmp $b->{'address'} } Echolot::Globals::get()->{'storage'}->get_addresses(); - my %remailers = map { $_->{'address'} => $_ } Echolot::Globals::get()->{'storage'}->get_remailers(); my $report = "*** Status summary ***\n"; for my $remailer (@addresses) { @@ -36,11 +35,8 @@ sub print_summary(;$) { ($remailer->{'showit'} ? '1' : '0') . "; TTL: $remailer->{'ttl'}\n"; $report .= " Resurection TTL: $remailer->{'resurrection_ttl'}\n" if (defined $remailer->{'resurrection_ttl'} && ($remailer->{'status'} eq 'ttl timeout')); - if (defined $remailers{$addr}) { - $report .= " $remailers{$addr}->{'status'}\n"; - for my $type (Echolot::Globals::get()->{'storage'}->get_types($addr)) { - $report .= " Type: $type: ".join(', ', Echolot::Globals::get()->{'storage'}->get_keys($addr, $type))."\n"; - }; + for my $type (Echolot::Globals::get()->{'storage'}->get_types($addr)) { + $report .= " Type: $type: ".join(', ', Echolot::Globals::get()->{'storage'}->get_keys($addr, $type))."\n"; }; }; if (defined $manual) { -- cgit v1.2.3