Discrepancy for rating percentages in uploads report
Closed this issue · 1 comments
BrokenEagle commented
It was reported by Chiara that the percentages for the ratings on the upload reports don't add up to 100%. This appears to be because the numbers are being truncated to integers.
https://github.com/r888888888/reportbooru/blob/master/app/models/reports/uploads.rb#L22-L24
Switching the format string to "%.1f%%"
would alleviate this discrepancy, although to eliminate it the numbers would need to be rounded down to whichever decimal point is being used.
r888888888 commented
I think %.0f%%
is good enough.