lib/sidekiq/middleware/server/datadog.rb in sidekiq-datadog-0.3.2 vs lib/sidekiq/middleware/server/datadog.rb in sidekiq-datadog-0.3.3

- old
+ new

@@ -56,10 +56,10 @@ private def record(worker, job, queue, start, error = nil) ms = ((Time.now - start) * 1000).round if job["enqueued_at"] - queued_ms = start - Time.at(job["enqueued_at"]) + queued_ms = ((start - Time.at(job["enqueued_at"])) * 1000).round end name = underscore(job['wrapped'] || worker.class.to_s) tags = @tags.map do |tag| case tag when String then tag when Proc then tag.call(worker, job, queue, error) end end