mirror of
https://github.com/pi-hole/web.git
synced 2024-12-06 19:36:21 +01:00
Simplify function gravityCount()
This commit is contained in:
@@ -264,15 +264,8 @@
|
||||
function gravityCount() {
|
||||
global $blackListFile;
|
||||
$preEventHorizon = exec("grep -c ^ /etc/pihole/list.preEventHorizon");
|
||||
if(file_exists($blackListFile))
|
||||
{
|
||||
$blacklist = exec("grep -c ^ /etc/pihole/blacklist.txt");
|
||||
return ($preEventHorizon + $blacklist);
|
||||
}
|
||||
else
|
||||
{
|
||||
return ($preEventHorizon);
|
||||
}
|
||||
$blacklist = exec("grep -c ^ $blackListFile");
|
||||
return ($preEventHorizon + $blacklist);
|
||||
}
|
||||
|
||||
function getDnsQueries(\SplFileObject $log) {
|
||||
|
||||
Reference in New Issue
Block a user