From 0ceefe548501989ced995b7faaab2aa560b12e08 Mon Sep 17 00:00:00 2001 From: bergware Date: Sun, 27 Feb 2022 13:13:03 +0100 Subject: [PATCH] Parity log optimization --- plugins/dynamix/include/Helpers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dynamix/include/Helpers.php b/plugins/dynamix/include/Helpers.php index 6102da297..92670f01e 100644 --- a/plugins/dynamix/include/Helpers.php +++ b/plugins/dynamix/include/Helpers.php @@ -200,7 +200,7 @@ function escapestring($name) { } function tail($file, $rows=1) { $file = new SplFileObject($file); - $file->seek(SEEK_END); + $file->seek(PHP_INT_MAX); $file->seek($file->key()-$rows); $echo = []; while (!$file->eof()) {