mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 12:48:29 +00:00
Enable no-zero-fractions rule
Signed-off-by: XhmikosR <xhmikosr@gmail.com>
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user