1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00

Cast to float before string to ensure it's in double form, fixes #1200

This commit is contained in:
Mike Perham 2013-09-24 12:23:05 -07:00
parent a8c0e28bba
commit 7a4da5d67d

View file

@ -260,7 +260,7 @@ module Sidekiq
def schedule(timestamp, message)
Sidekiq.redis do |conn|
conn.zadd(@zset, timestamp.to_s, Sidekiq.dump_json(message))
conn.zadd(@zset, timestamp.to_f.to_s, Sidekiq.dump_json(message))
end
end