Skip to content

Commit

Permalink
By default, show results for most recent month only. Add an --all opt…
Browse files Browse the repository at this point in the history
…ion to show complete history.
  • Loading branch information
iay committed Jun 2, 2010
1 parent 5679c2e commit f170c26
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
12 changes: 12 additions & 0 deletions charting/saml2.pl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@
use Xalan;
use Months;

# Parse command line arguments
use Getopt::Long;
my $allMonths;
GetOptions('all' => \$allMonths);

# By default, only show results for the most recent month
if (!$allMonths) {
# reduce months table to one element
my $oneMonth = pop @months;
@months = ( $oneMonth );
}

# ingest files
foreach $month (@months) {
my $fn = "cache/$month.xml";
Expand Down
12 changes: 12 additions & 0 deletions charting/sizes.pl
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@
use File::stat;
use Months;

# Parse command line arguments
use Getopt::Long;
my $allMonths;
GetOptions('all' => \$allMonths);

# By default, only show results for the most recent month
if (!$allMonths) {
# reduce months table to one element
my $oneMonth = pop @months;
@months = ( $oneMonth );
}

# ingest files
foreach $month (@months) {
my $fn = "cache/$month.xml";
Expand Down
12 changes: 12 additions & 0 deletions charting/trust.pl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,18 @@
use Xalan;
use Months;

# Parse command line arguments
use Getopt::Long;
my $allMonths;
GetOptions('all' => \$allMonths);

# By default, only show results for the most recent month
if (!$allMonths) {
# reduce months table to one element
my $oneMonth = pop @months;
@months = ( $oneMonth );
}

# ingest files
foreach $month (@months) {
my $fn = "cache/$month.xml";
Expand Down

0 comments on commit f170c26

Please sign in to comment.