From b540ace9879ab47e91ce93ab4181b7f6e5f59ff5 Mon Sep 17 00:00:00 2001 From: Justin Theberge Date: Wed, 6 Apr 2016 10:19:07 -0400 Subject: [PATCH] relevant names --- data.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/data.php b/data.php index f0dc7dac..3c051dd0 100644 --- a/data.php +++ b/data.php @@ -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() {