mirror of
https://github.com/unraid/webgui.git
synced 2026-05-11 14:51:13 -05:00
Parity log optimization
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user