Permalink
Browse files

clarity, confirmed logfile

  • Loading branch information...
tommyrot committed Sep 22, 2012
1 parent c71d463 commit 4db6b79644b274e403f909160abf28893a5c5b51
Showing with 4 additions and 4 deletions.
  1. +4 −4 sss.php
View
@@ -467,7 +467,7 @@ private function parse_log($filedir)
*/
$needmaintenance = false;
- foreach ($logfiles as $date => $file) {
+ foreach ($logfiles as $date => $logfile) {
if (!is_null($date_lastlogparsed) && strtotime($date) < strtotime($date_lastlogparsed)) {
continue;
}
@@ -504,14 +504,14 @@ private function parse_log($filedir)
/**
* Check if we are dealing with a gzipped log.
*/
- if (preg_match('/\.gz$/', $file)) {
+ if (preg_match('/\.gz$/', $logfile)) {
if (!extension_loaded('zlib')) {
$this->output('critical', 'parse_log(): zlib extension isn\'t loaded: can\'t parse gzipped logs'."\n");
}
- $parser->gzparse_log($file, $firstline);
+ $parser->gzparse_log($logfile, $firstline);
} else {
- $parser->parse_log($file, $firstline);
+ $parser->parse_log($logfile, $firstline);
}
$logsparsed++;

0 comments on commit 4db6b79

Please sign in to comment.