Files
clamav/contrib/mpoolparse/mpoolparse.pl
aCaB b26d0ef3fd mpool opt
git-svn: trunk@4354
2008-11-08 05:34:25 +00:00

18 lines
244 B
Perl

#!/usr/bin/perl
use strict;
use warnings;
my %frags = ();
while (<>) {
chomp;
next unless /^LibClamAV Warning: [mc]alloc .* size (\d+) .*$/;
$frags{$1}++;
}
foreach (sort {$a<=>$b} (keys(%frags))) {
print "$_, /* ($frags{$_}) */\n";
}