[Libreoffice-commits] dev-tools.git: scripts/esc-bug-stats.pl
Robinson Tryon
qubit at runcibility.com
Thu Dec 3 02:08:18 PST 2015
scripts/esc-bug-stats.pl | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
New commits:
commit 0d930b1c9042ad5f0a1c212fbdc436ca1bf0daf5
Author: Robinson Tryon <qubit at runcibility.com>
Date: Thu Dec 3 04:04:55 2015 -0600
esc-bug-stats: Add 5.2 MABs; avoid DIV0 error if no bugs are MABs
diff --git a/scripts/esc-bug-stats.pl b/scripts/esc-bug-stats.pl
index 4d84dd3..b5645be 100755
--- a/scripts/esc-bug-stats.pl
+++ b/scripts/esc-bug-stats.pl
@@ -52,7 +52,8 @@ my %ver_total;
build_overall_bugstats();
my %rseries =
- ( '5.1' => '5.1',
+ ( '5.2' => '5.2',
+ '5.1' => '5.1',
'5.0' => '5.0',
'4.5' => '5.0', # urgh
'4.4' => '4.4',
@@ -84,7 +85,7 @@ for my $rs (keys %rseries) {
for my $bucket (sort { $b cmp $a } keys %ver_open) {
my $open = $ver_open{$bucket};
my $all = $ver_total{$bucket};
- my $percent = sprintf("%2d", (($open * 100.0) / $all));
+ my $percent = sprintf("%2d", $all ? (($open * 100.0) / $all) : 0);
print STDERR " $bucket: $open/$all - $percent%\n";
}
More information about the Libreoffice-commits
mailing list