macmillan-utils 1.0.16 → 1.0.17

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a55ad2739730efad268195c547a7e32778b01a24
4
- data.tar.gz: 7fdcb527d586d86710b39f37109fbeb43f9d6714
3
+ metadata.gz: 951184f25f8950d5ed27caf80fc988ff05c51e7a
4
+ data.tar.gz: 9e38e87df83ef07ce39bf3b4e4c9bf4db174e984
5
5
  SHA512:
6
- metadata.gz: 7610595d1d34f5302efc6c0eda3005addc1ec698d490c872b0ac85a04c1f8a69646ee650ed373d0afacd7ca94c91ee2cd70d438c2d082b838fac01a65b25cdbc
7
- data.tar.gz: 01578efea5492224685f7ddfddcaf25efcd262f24f7f6f45b9c2f8dd4287ffb2f8aef1f9ec8c1b9a2647082d1f03100a970e8f460318f65b78857f6abb781ecb
6
+ metadata.gz: 37cb4306ae641b75bae621999d0138d9a1a03456b54a688a3df6d6829536ee93a02a2f93942328e77bd3616ad2c27174d0cba47cd83bef0a21c692b75dfa1697
7
+ data.tar.gz: a3504c05c8e322e1738d4b5ecc2b23fc0b2d47a79ef19f8509c92e469cdc40d5f55c7adef8ce9e53f021917bee774128192db7a49fc259dc9c33f67e9d5d96de
@@ -54,11 +54,11 @@ ActiveSupport::Notifications.subscribe /process_action.action_controller/ do |*a
54
54
  $statsd.timing('response_time', event.duration)
55
55
 
56
56
  $statsd.timing("#{key}.response_time", event.duration)
57
- $statsd.timing("#{key}.db_time", event.payload[:db_runtime])
58
- $statsd.timing("#{key}.view_time", event.payload[:view_runtime])
57
+ $statsd.timing("#{key}.db_time", event.payload[:db_runtime]) if event.payload[:db_runtime]
58
+ $statsd.timing("#{key}.view_time", event.payload[:view_runtime]) if event.payload[:view_runtime]
59
59
 
60
60
  $statsd.timing("#{key}.#{hostname}.response_time", event.duration)
61
- $statsd.timing("#{key}.#{hostname}.db_time", event.payload[:db_runtime])
62
- $statsd.timing("#{key}.#{hostname}.view_time", event.payload[:view_runtime])
61
+ $statsd.timing("#{key}.#{hostname}.db_time", event.payload[:db_runtime]) if event.payload[:db_runtime]
62
+ $statsd.timing("#{key}.#{hostname}.view_time", event.payload[:view_runtime]) if event.payload[:view_runtime]
63
63
  end
64
64
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: macmillan-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.16
4
+ version: 1.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Macmillan Science and Education (New Publsihing Platforms)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-25 00:00:00.000000000 Z
11
+ date: 2015-02-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler