Enable no-zero-fractions rule

Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
XhmikosR
2020-05-16 14:45:12 +03:00
parent aec571579d
commit 623087346a
6 changed files with 12 additions and 13 deletions

View File

@@ -877,12 +877,12 @@ $(document).ready(function () {
},
label: function (tooltipItems, data) {
if (tooltipItems.datasetIndex === 0) {
var percentage = 0.0;
var percentage = 0;
var permitted = parseInt(data.datasets[1].data[tooltipItems.index]);
var blocked = parseInt(data.datasets[0].data[tooltipItems.index]);
var total = permitted + blocked;
if (total > 0) {
percentage = (100.0 * blocked) / total;
percentage = (100 * blocked) / total;
}
return (