activeinsights 1.1.1 → 1.1.2

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
  SHA256:
3
- metadata.gz: 192b4bd4748a82c5e01887fb8f54fe0a76c7ffdf1a8780d190879aaed37f5182
4
- data.tar.gz: d02890ed7d5dbfe9bd6339fd15c9997fdf295dc4d5dc145114b431298d420947
3
+ metadata.gz: 3567672d500efcb013d6ee2263f1d96572e1aa8e582e2fb6888b181bb98d5013
4
+ data.tar.gz: f3616dadb688c55d558c4bdcd9ba4ffb4f69c63c74907a9af4290afc6fbb9820
5
5
  SHA512:
6
- metadata.gz: 25e424494797d134e929d9521c0052ae4e0a10138eba7a12d997b783d1857e76ba10dc4a20fc9492be05784ede505d7f233365eed8b7270e97363bd896ee453b
7
- data.tar.gz: e05659cbd9d081dbfa0c6e6e63c65b6ef3d8fe13d2c69abd6db316dc85cc7b787066e628bbe2418626f1d6c2eb72d1d0bee1fd92f1132f5b7baddd403a766bdb
6
+ metadata.gz: 4d8b2237cdf9eb7611d850d2636b241d832d52fbf580f2cfc9548f00f5ecc379de81848018e265f5a95995451c423408edfec20af657ef4803d8789f85545d15
7
+ data.tar.gz: 278d789ece207a373929367a63a2d12f635aa27ca94ddfabbe7c966e6db174733dd0f79b3ac8e9c2126a68da3a5068ea84acb087370024359c42b5fd2a1ad454
@@ -11,7 +11,7 @@ module ActiveInsights
11
11
  end
12
12
 
13
13
  def percentage(others)
14
- (parsed_durations.sum / others.flat_map(&:parsed_durations).sum) * 100.0
14
+ (agony / others.sum(&:agony)) * 100.0
15
15
  end
16
16
  end
17
17
  end
@@ -50,7 +50,7 @@
50
50
  <tr>
51
51
  <td><%= link_to model.formatted_controller, controller_p_values_path(@date.first.to_date, model.formatted_controller) %></td>
52
52
  <td><%= per_minute(model.parsed_durations.size, (@date.last - @date.first).seconds) %></td>
53
- <td><%= number_to_percentage model.percentage(@requests.excluding(model)), precision: 1 %></td>
53
+ <td><%= number_to_percentage model.percentage(@requests), precision: 1 %></td>
54
54
  <td><%= model.p50 %> ms</td>
55
55
  <td><%= model.p95 %> ms</td>
56
56
  <td><%= model.p99 %> ms</td>
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ActiveInsights
4
- VERSION = "1.1.1"
4
+ VERSION = "1.1.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activeinsights
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Pezza
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-03 00:00:00.000000000 Z
11
+ date: 2024-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chartkick