[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Popcon-developers] Bug#542756: popcon.debian.org: please provide "max" statistics by source packages



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:")






Reply to: