Skip to content

Commit

Permalink
Merge pull request #10 from VictoRD11/fixOctane
Browse files Browse the repository at this point in the history
Fix Laravel Octane
  • Loading branch information
arukompas authored Aug 22, 2022
2 parents 5b8e022 + ea12505 commit 627aeb6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Http/Livewire/LogList.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ public function render()

$levels = $logQuery?->getLevelCounts();
$logs = $logQuery?->paginate($this->perPage);
$startTime = defined('LARAVEL_START') ? LARAVEL_START : request()->server('REQUEST_TIME_FLOAT');

$memoryUsage = number_format(memory_get_peak_usage(true) / 1024 / 1024, 2).' MB';
$requestTime = number_format((microtime(true) - LARAVEL_START) * 1000, 0).'ms';
$requestTime = number_format((microtime(true) - $startTime) * 1000, 0).'ms';

return view('log-viewer::livewire.log-list', [
'file' => $file,
Expand Down

0 comments on commit 627aeb6

Please sign in to comment.