SF.net SVN: logwatch:[58] scripts/services/clamav-milter
| Newsgroups | gmane.comp.log.logwatch.devel |
|---|---|
| Message-ID | <[email protected]> |
Revision: 58
http://logwatch.svn.sourceforge.net/logwatch/?rev=58&view=rev
Author: opoplawski
Date: 2011-06-22 16:06:18 +0000 (Wed, 22 Jun 2011)
Log Message:
-----------
Aggregate clamav-milter unknown messages
Modified Paths:
--------------
scripts/services/clamav-milter
Modified: scripts/services/clamav-milter
===================================================================
--- scripts/services/clamav-milter 2011-05-27 21:31:32 UTC (rev 57)
+++ scripts/services/clamav-milter 2011-06-22 16:06:18 UTC (rev 58)
@@ -59,7 +59,7 @@
$DatabaseReloads++;
$DatabaseViruses = $Viruses;
} else {
- push @OtherList,$ThisLine;
+ $OtherList{$ThisLine}++;
}
}
@@ -97,9 +97,11 @@
print " Total: $Total\n";
}
-if (($#OtherList >= 0) and (not $IgnoreUnmatched)){
+if ((keys %OtherList) and (not $IgnoreUnmatched)){
print "\n**Unmatched Entries**\n";
- print @OtherList;
+ foreach my $line (sort {$OtherList{$b}<=>$OtherList{$a} } keys %OtherList) {
+ print "\n $line: $OtherList{$line} Time(s)";
+ }
}
exit(0);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger.
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today.
http://p.sf.net/sfu/quest-sfdev2dev