relevant names

This commit is contained in:
Justin Theberge
2016-04-06 10:19:07 -04:00
parent 63539fa16a
commit b540ace987
+7 -7
View File
@@ -153,15 +153,15 @@
/******** Private Members ********/
function readInBlockList() {
//returns count of domains in blocklist.
$file="/etc/pihole/gravity.list";
$linecount = 0;
$handle = fopen($file, "r");
while ($chunk = fread($handle, 1024000)) {
$linecount += substr_count($chunk, "\n");
$gravity="/etc/pihole/gravity.list";
$swallowed = 0;
$NGC4889 = fopen($gravity, "r");
while ($stars = fread($NGC4889, 1024000)) {
$swallowed += substr_count($stars, "\n");
}
fclose($handle);
fclose($NGC4889);
return $linecount;
return $swallowed;
}
function readInLog() {