From 55ca438b2db24eadd2a5008f6f9d13fcf25a30fa Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Fri, 18 Dec 2015 13:41:49 +0200 Subject: Updated to use the right form of counting for the set. --- lib/custodian/queue.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/custodian') diff --git a/lib/custodian/queue.rb b/lib/custodian/queue.rb index c8dfed8..d1f4a2c 100644 --- a/lib/custodian/queue.rb +++ b/lib/custodian/queue.rb @@ -110,7 +110,7 @@ module Custodian # How many jobs in the queue? # def size? - @redis.zcard('custodian_queue') + @redis.scard('custodian_queue') end -- cgit v1.2.1