1
0
mirror of https://github.com/pi-hole/pi-hole synced 2025-02-08 22:22:38 +00:00

Fix counting of domains in the gravity summary (#5881)

This commit is contained in:
Dominik 2025-02-02 21:07:52 +01:00 committed by GitHub
commit ec805f9543
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -864,11 +864,11 @@ gravity_Table_Count() {
gravity_ShowCount() {
# Here we use the table "gravity" instead of the view "vw_gravity" for speed.
# It's safe to replace it here, because right after a gravity run both will show the exactly same number of domains.
gravity_Table_Count "gravity" "gravity domains" ""
gravity_Table_Count "vw_blacklist" "exact denied domains"
gravity_Table_Count "vw_regex_blacklist" "regex denied filters"
gravity_Table_Count "vw_whitelist" "exact allowed domains"
gravity_Table_Count "vw_regex_whitelist" "regex allowed filters"
gravity_Table_Count "gravity" "gravity domains"
gravity_Table_Count "domainlist WHERE type = 1" "exact denied domains"
gravity_Table_Count "domainlist WHERE type = 3" "regex denied filters"
gravity_Table_Count "domainlist WHERE type = 0" "exact allowed domains"
gravity_Table_Count "domainlist WHERE type = 2" "regex allowed filters"
}
# Trap Ctrl-C