summaryrefslogtreecommitdiffstats
path: root/usr/local/bin/filterparser.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-03-13 23:28:12 +0545
committerPhil Davis <phil.davis@inf.org>2015-03-13 23:28:12 +0545
commit7d61beba45e06f4be2fc5436f14e879ec7dd2675 (patch)
tree15d21def93d92267bc1be37e0a4b15846ae358c9 /usr/local/bin/filterparser.php
parentf2f34088ace895b0113b468b856ceb02301585d1 (diff)
downloadpfsense-7d61beba45e06f4be2fc5436f14e879ec7dd2675.zip
pfsense-7d61beba45e06f4be2fc5436f14e879ec7dd2675.tar.gz
Code Style sbin tmp usr
Bits and pieces from sbin tmp and usr but not yet usr/local/www
Diffstat (limited to 'usr/local/bin/filterparser.php')
-rwxr-xr-xusr/local/bin/filterparser.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/local/bin/filterparser.php b/usr/local/bin/filterparser.php
index da1f98e..bec8016 100755
--- a/usr/local/bin/filterparser.php
+++ b/usr/local/bin/filterparser.php
@@ -31,8 +31,8 @@
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
- A quick CLI log parser.
- Examples:
+ A quick CLI log parser.
+ Examples:
clog /var/log/filter.log | tail -50 | /usr/local/www/filterparser.php
clog -f /var/log/filter.log | /usr/local/www/filterparser.php
*/
@@ -45,7 +45,7 @@ include_once("filter_log.inc");
$log = fopen("php://stdin", "r");
$lastline = "";
-while(!feof($log)) {
+while (!feof($log)) {
$line = fgets($log);
$line = rtrim($line);
$flent = parse_filter_line(trim($line));
OpenPOWER on IntegriCloud