[Popcon-developers] Bug#542756: popcon.debian.org: please provide "max" statistics by source packages
Petr Salinger
Petr.Salinger at seznam.cz
Wed Sep 2 13:12:25 UTC 2009
It will be usefull to have available also "max" instead of "sum".
Such ranking corresponds more to importance of a source package.
Idea is something like bellow.
Petr
--- popcon.pl
+++ popcon.pl
@@ -283,7 +267,10 @@
my ($f,$v)=($fields[$i],$votes[$i]);
$pkg{$name}->{$f}=$v;
$maintpkg{$maint{$name}}->{$f}+=$v;
- $sourcepkg{$source{$name}}->{$f}+=$v;
+ if ( $v > $sourcepkg{$source{$name}}->{$f} )
+ {
+ $sourcepkg{$source{$name}}->{$f}=$v;
+ }
}
}
elsif ($type eq "Architecture:")
More information about the Popcon-developers
mailing list