Skip to content

Commit

Permalink
Fix multiple month display of SAML 2 entities.
Browse files Browse the repository at this point in the history
Note that this won't go all the way back to the start of records
because the XSLT depends on published metadata containing
registrationAuthority metadata, which we started using
in September 2012.
  • Loading branch information
iay committed Nov 7, 2016
1 parent f1f5589 commit 7b6c3f5
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions charting/saml2.pl
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,21 @@
open(TXT, xalanCall . " -IN $fn -XSL saml2.xsl|") || die "could not open input file";
$_ = <TXT>;
chop;
# print "$month: $_\n";
my ($entities, $idps, $sps, $saml2total, $saml2idp, $saml2sp) = split;
push @overallRatio, $saml2total/$entities;
push @idpRatio, $saml2idp/$idps;
push @spRatio, $saml2sp/$sps;
push @product, ($saml2idp/$idps)*($saml2sp/$sps);
if ($entities == 0) {
# print "skipping $month: $_\n";
next;
}
my $mPrefix = $allMonths ? "$month: " : '';
my $oRatio = $saml2total/$entities;
push @overallRatio, "$mPrefix$oRatio";
my $iRatio = $saml2idp/$idps;
push @idpRatio, "$mPrefix$iRatio";
my $sRatio = $saml2sp/$sps;
push @spRatio, "$mPrefix$sRatio";
my $p = ($saml2idp/$idps)*($saml2sp/$sps);
push @product, "$mPrefix$p";
close TXT;
}

Expand All @@ -55,4 +65,4 @@
print "$ratio\n";
}

1;
1;

0 comments on commit 7b6c3f5

Please sign in to comment.