summaryrefslogtreecommitdiff
path: root/src/daemons
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-03-10 19:20:25 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-03-10 19:20:25 +0900
commit0fff2e4f16e8956321b6a0e54ca8b0fe31ccff07 (patch)
tree13a5adf4aa944a8d19c6f125d5b65e8c12ff26f8 /src/daemons
parentResolve #4462 (diff)
downloadsharkey-0fff2e4f16e8956321b6a0e54ca8b0fe31ccff07.tar.gz
sharkey-0fff2e4f16e8956321b6a0e54ca8b0fe31ccff07.tar.bz2
sharkey-0fff2e4f16e8956321b6a0e54ca8b0fe31ccff07.zip
Remove debug code
Diffstat (limited to 'src/daemons')
-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);