Skip to content
Snippets Groups Projects
Commit 0e5bde51 authored by Glenn Proctor's avatar Glenn Proctor
Browse files

Avoid division-by-zero errors.

parent 03457c38
No related branches found
No related tags found
No related merge requests found
......@@ -78,7 +78,6 @@ sub compare {
close(NEW_ONLY);
close(OLD_ONLY);
close(MISMATCHED);
print "\nCompared " . scalar(keys %$new) . " new xref mappings with " . scalar(keys %$old) . " existing ensembl mappings\n";
......@@ -99,6 +98,9 @@ sub compare {
sub pc {
my ($a, $total) = @_;
return "?" if (!$total);
my $number = 100 * $a / $total;
my $pad = "";
$pad .= " " if ($number < 100);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment