mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
get_progress: simplify percentage generation
This commit is contained in:
parent
333c5e39bf
commit
83bf6a512d
1 changed files with 1 additions and 1 deletions
|
|
@ -36,7 +36,7 @@ class Target < ActiveRecord::Base
|
|||
elsif unit == Target.units[:program_minutes]
|
||||
numerator = conference.current_program_minutes
|
||||
end
|
||||
(numerator / target_count.to_f * 100).round(0).to_s
|
||||
(100 * numerator / target_count).to_s
|
||||
end
|
||||
|
||||
##
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue