Fix worktime preview rounding

master
Vitaliy Filippov 2014-07-11 18:37:43 +04:00
parent 5f094ad0b4
commit 51334918c7
1 changed files with 1 additions and 1 deletions

View File

@ -362,7 +362,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)/100 };
$vars->{round} = sub { int($_[0]*100+0.5)/100 };
$template->process('worktime/dry-run.html.tmpl', $vars);
exit;
}