diff options
author | Peter Palfrader <peter@palfrader.org> | 2004-04-24 12:01:04 +0000 |
---|---|---|
committer | Peter Palfrader <peter@palfrader.org> | 2004-04-24 12:01:04 +0000 |
commit | c81ff6b6a0c58e927c61d59b03f142f400e31ef4 (patch) | |
tree | 4a192315cc2b34c490f172d29e56e59b3c3bb5d8 /Echolot/Report.pm | |
parent | cba4fede6001197482b3d6c79dd698aae4232339 (diff) |
Remove get_remailers since get_addresses does almost the same.
Make sure we do not create empty key hashes in metadata.
Diffstat (limited to 'Echolot/Report.pm')
-rw-r--r-- | Echolot/Report.pm | 8 |
1 files changed, 2 insertions, 6 deletions
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) { |