Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[10.x] Display queue runtime in human readable format #47227

Merged
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Correct runtime check for formatting with Carbon
  • Loading branch information
michaeldyrynda committed May 31, 2023
commit f7c2f55e6514cd90fba9333256d3f33ec66f1551
2 changes: 1 addition & 1 deletion src/Illuminate/Queue/Console/WorkCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ protected function resolveRunTime()
{
$runTime = number_format((microtime(true) - $this->latestStartedAt) * 1000, 2);

if ($runTime > 1) {
if ($runTime > 1000) {
return CarbonInterval::milliseconds($runTime)->cascade()->forHumans(short: true);
}

Expand Down