Skip to content

Commit

Permalink
adjust processing order
Browse files Browse the repository at this point in the history
  • Loading branch information
barbie committed Jan 28, 2012
1 parent 8d6afc2 commit cc8a219
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions lib/CPAN/Testers/WWW/Statistics/Pages.pm
Original file line number Diff line number Diff line change
Expand Up @@ -250,13 +250,6 @@ sub build_matrices {
sub build_stats {
my $self = shift;

## BUILD INDEPENDENT STATS
$self->_report_cpan();
$self->_no_reports();

## BUILD MONTHLY STATS
$self->_build_monthly_stats();

$self->{parent}->_log("stats start");
my $storage = $self->{parent}->mainstore();
if($storage && -f $storage) {
Expand All @@ -273,6 +266,13 @@ sub build_stats {
my @versions = sort {versioncmp($b,$a)} keys %{$self->{perls}};
$self->{versions} = \@versions;

## BUILD INDEPENDENT STATS
$self->_report_cpan();
$self->_no_reports();

## BUILD MONTHLY STATS
$self->_build_monthly_stats();

## BUILD STATS PAGES
$self->_report_interesting();
$self->_build_monthly_stats_files();
Expand All @@ -282,6 +282,7 @@ sub build_stats {
## BUILD INDEX PAGE
$self->_write_index();
}

$self->{parent}->_log("stats finish");
}

Expand Down Expand Up @@ -1371,6 +1372,7 @@ sub _build_osname_leaderboards {
my @posts = sort keys %$data;
$self->{parent}->_log("5.posts[0]=$posts[0]");

# Update data for the missing months
if($posts[0] != $post1) {
my $p = $posts[0];
while($p <= $post3) {
Expand All @@ -1384,6 +1386,7 @@ sub _build_osname_leaderboards {
}
}

# store data for the last 3 months, and in total
my %oses;
for my $post (keys %$data) {
if($post == $post0 || $post == $post1 || $post == $post2 || $post == $post3) {
Expand Down

0 comments on commit cc8a219

Please sign in to comment.