mirror of
https://github.com/pi-hole/web.git
synced 2025-12-23 04:08:39 +00:00
Use all the new Pi-hole v5.0 blocking status code also in the long-term data where it was forgotten to add them.
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -198,13 +198,13 @@ var reloadCallback = function () {
|
||||
statistics = [0, 0, 0, 0];
|
||||
var data = tableApi.rows().data();
|
||||
for (var i = 0; i < data.length; i++) {
|
||||
statistics[0]++;
|
||||
if (data[i][4] === 1) {
|
||||
statistics[2]++;
|
||||
statistics[0]++; // TOTAL query
|
||||
if (data[i][4] === 1 || (data[i][4] > 4 && data[i][4] !== 10)) {
|
||||
statistics[2]++; // EXACT blocked
|
||||
} else if (data[i][4] === 3) {
|
||||
statistics[1]++;
|
||||
} else if (data[i][4] === 4) {
|
||||
statistics[3]++;
|
||||
statistics[1]++; // CACHE query
|
||||
} else if (data[i][4] === 4 || data[i][4] === 10) {
|
||||
statistics[3]++; // REGEX blocked
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user