From f429308acdea6c66150dc8237e5178056872b466 Mon Sep 17 00:00:00 2001 From: Dominik Pfennig <dominik@suma-ev.de> Date: Sun, 17 Jul 2016 18:11:53 +0200 Subject: [PATCH] Update AdminInterface.php --- app/Http/Controllers/AdminInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Http/Controllers/AdminInterface.php b/app/Http/Controllers/AdminInterface.php index 32eb87b49..97f88236e 100644 --- a/app/Http/Controllers/AdminInterface.php +++ b/app/Http/Controllers/AdminInterface.php @@ -59,7 +59,7 @@ class AdminInterface extends Controller $rekordTagDate = ""; for($i = 1; $i <= 28; $i ++ ) { - $logDate = "/var/log/metager/archive/" . date("Y-m-d", mktime(date("H"),date("i"), date("s"), date("m"), date("d")-$i, date("Y"))) . "_mg3.log"; + $logDate = "/var/log/metager/archive/" . "mg3.log.$i"; if( file_exists($logDate) ) { $sameTime = exec("grep -n '" . date('H') . ":" . date('i') . ":' $logDate | tail -1 | cut -f1 -d':'"); -- GitLab