get_progress: simplify percentage generation

This commit is contained in:
Björn Geuken 2015-04-17 09:57:00 +02:00
parent 333c5e39bf
commit 83bf6a512d

View file

@ -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
##