Skip to content

Commit

Permalink
sort keys instead of keys, prettyer that way
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolai Langfeldt committed Sep 19, 2006
1 parent 6605f96 commit 0fd31a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions node/node.d/postfix_mailstats.in
Expand Up @@ -108,7 +108,7 @@ if (-f "$statefile")
if (! -f $logfile and ! -f $rotlogfile)
{
print "delivered.value U\n";
foreach my $i (keys %{$rejects})
foreach my $i (sort keys %{$rejects})
{
print "r$i.value U\n";
}
Expand Down Expand Up @@ -146,7 +146,7 @@ if ( $ARGV[0] and $ARGV[0] eq "config" )
print "delivered.type DERIVE\n";
print "delivered.draw AREA\n";
print "delivered.min 0\n";
foreach my $i (keys %{$rejects})
foreach my $i (sort keys %{$rejects})
{
print "r$i.label reject $i\n";
print "r$i.type DERIVE\n";
Expand All @@ -157,7 +157,7 @@ if ( $ARGV[0] and $ARGV[0] eq "config" )
}

print "delivered.value $delivered\n";
foreach my $i (keys %{$rejects})
foreach my $i (sort keys %{$rejects})
{
print "r$i.value ", $rejects->{$i}, "\n";
}
Expand All @@ -167,7 +167,7 @@ if(-l $statefile) {
}
open (OUT, ">$statefile") or exit 4;
print OUT "$pos:$delivered\n";
foreach my $i (keys %{$rejects})
foreach my $i (sort keys %{$rejects})
{
print OUT "$i:", $rejects->{$i}, "\n";
}
Expand Down

0 comments on commit 0fd31a0

Please sign in to comment.