We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aab34ab commit 0f0a118Copy full SHA for 0f0a118
lib/mongoid/railties/controller_runtime.rb
@@ -62,7 +62,7 @@ class Collector
62
def started _; end
63
64
def _completed e
65
- Collector.runtime += e.duration
+ Collector.runtime += e.duration * 1000
66
end
67
alias :succeeded :_completed
68
alias :failed :_completed
spec/rails/controller_extension/controller_runtime_spec.rb
@@ -30,11 +30,11 @@ def clear_metric!
30
31
clear_metric!
32
instance.succeeded event_payload
33
- expect(collector.runtime).to eq(42)
+ expect(collector.runtime).to eq(42000)
34
35
36
instance.failed event_payload
37
38
39
40
it "resets the metric and returns the value" do
0 commit comments