Skip to content

Commit 2aab87d

Browse files
committed
Update timestamp calc
1 parent 34e2368 commit 2aab87d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Queue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(string $name, QueueOpts $opts = null)
3737
public function add(string $name, array $data, JobOpts $opts = null)
3838
{
3939
$opts = $opts ?: new JobOpts([
40-
'timestamp' => (int) str_replace('.', '', microtime(true)),
40+
'timestamp' => (int) round(microtime(true) * 1000),
4141
]);
4242

4343
$prefix = sprintf('%s:%s:', $this->opts->prefix, $this->name);

0 commit comments

Comments
 (0)