summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/daemons/queue-stats.ts10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/daemons/queue-stats.ts b/src/daemons/queue-stats.ts
index 26f2bf7c03..41babb1c88 100644
--- a/src/daemons/queue-stats.ts
+++ b/src/daemons/queue-stats.ts
@@ -21,14 +21,8 @@ export default function() {
const inboxJobCounts = await inboxQueue.getJobCounts();
const stats = {
- deliver: {
- active: Math.floor(Math.random() * 100),
- delayed: Math.floor(Math.random() * 1000),
- },
- inbox: {
- active: Math.floor(Math.random() * 100),
- delayed: Math.floor(Math.random() * 1000),
- }
+ deliver: deliverJobCounts,
+ inbox: inboxJobCounts
};
ev.emit('queueStats', stats);