remove WebGUI::Utility::round
This commit is contained in:
parent
ddf0419836
commit
fadc4f34ea
13 changed files with 34 additions and 87 deletions
|
|
@ -1500,7 +1500,7 @@ sub recalculateRating {
|
|||
[$self->getId]
|
||||
);
|
||||
|
||||
my $average = round($sum/$count);
|
||||
my $average = sprintf('%.0f', $sum/$count);
|
||||
$self->update({rating=>$average});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue