Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
eldadfux committed Apr 21, 2024
1 parent 0710693 commit aa95c26
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/Queue/servers/Swoole/load.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,12 @@ public function isValid(mixed $value): bool
->inject('message')
->action(function ($id, $time, $message) use ($jobs, $sleep) {
// usleep(100000);
if($time) {
if ($time) {
$currentTimestamp = time();
$timeDiff = ($currentTimestamp - $time) - $sleep;
$humanReadableDiff = formatTimeDiff($timeDiff);
Console::warning('Time took to process until job #'.$id . '/'. $jobs . ' jobs: '.$humanReadableDiff);
}

});

Worker::error()
Expand Down

0 comments on commit aa95c26

Please sign in to comment.