Show user satisfaction in percentages

This commit is contained in:
gregoirenovel 2018-09-10 14:04:59 +02:00
parent 26e0ada3d4
commit 50019e5317

View file

@ -145,7 +145,7 @@ class StatsController < ApplicationController
total = totals[week]
if total > 0
[week, (count.to_f / total).round(2)]
[week, (count.to_f / total * 100).round(2)]
else
0
end