Skip to content
Snippets Groups Projects
Commit 57206c8a authored by Ian Longden's avatar Ian Longden
Browse files

changed floor to int for ease of use

parent 1e2e88a9
No related branches found
No related tags found
No related merge requests found
......@@ -330,10 +330,10 @@ sub entry_number_check{
if(defined($new_object_xref_count{$name})){
$change = (($new_object_xref_count{$name} - $count)/$count) * 100;
if($change > 5){ # increase of 5%
print "WARNING: $name has increased by ".floor($change)."\% was $count now ". $new_object_xref_count{$name} . "\n" if($self->mapper->verbose);
print "WARNING: $name has increased by ".int($change)."\% was $count now ". $new_object_xref_count{$name} . "\n" if($self->mapper->verbose);
}
elsif($change < -5){ # decrease by 5%
print "WARNING: $name has decreased by ".floor($change)." \% was $count now ". $new_object_xref_count{$name} . "\n" if($self->mapper->verbose);
print "WARNING: $name has decreased by ".int($change)." \% was $count now ". $new_object_xref_count{$name} . "\n" if($self->mapper->verbose);
}
}
else{
......
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