Fix negative number rounding

hinted-selects
Vitaliy Filippov 2014-11-10 12:00:11 +03:00
parent 65732a2435
commit 353f14aab8
1 changed files with 1 additions and 1 deletions

View File

@ -364,7 +364,7 @@ sub HandleSuperWorktime
$vars->{test_times_by_bug} = $times;
$vars->{test_times_by_user} = $user_times;
$vars->{users} = $users;
$vars->{round} = sub { int($_[0]*100+0.5)/100 };
$vars->{round} = sub { ($_[0] < 0 ? -int(-$_[0]*100+0.5) : int($_[0]*100+0.5))/100 };
$template->process('worktime/dry-run.html.tmpl', $vars);
exit;
}