bipbip 0.6.12 → 0.6.13

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: 66c6f0dfc0b0a12acb0c6d112f633d1f9db8985e
4
- data.tar.gz: 6a214d21ed9b4dbcb6c9b6fe0be55ab0cf96752c
3
+ metadata.gz: 231d0f1f6c32e1f3933ca384d8d842e8b6fc28af
4
+ data.tar.gz: a74f11900b5261ebfc8d0095de966a7e9c46fcba
5
5
  SHA512:
6
- metadata.gz: 7c8b723a7fd0386bcdacbe0c2760295ec875dbdc97c44329ff3d464979082df4257c4f3748194499ebeb0d08e300140d6c55b14d712dbcf0f9645f1099e062fc
7
- data.tar.gz: 60b12b6455d6349c76c37afe6a19d0184b3515b9a76326dbafa8244e68e775dd5e7b655c185f163f938745f95ce4241076d40ae5b72065a46da382c85dbe101f
6
+ metadata.gz: aed71ce9f324aaeda5f4dffc6329375e11efd4cb828b56cf5c748657b73d8bb46592c40fb91a749ffa3f8540d8079d37c3f50648faea4a0dff5cf42658b2a77e
7
+ data.tar.gz: 80df167f868ddd2248061bec95cfa0c5e9cfd864a88d306eab6ca188661f4c7e8293b3bbf8011992635b2eecae15a4f2774fb2ba4ae2d025225ce66a0f881146
@@ -16,7 +16,7 @@ module Bipbip
16
16
  audiorooms = data['data']['list']
17
17
  {
18
18
  'room_count' => audiorooms.count,
19
- 'participant_count' => audiorooms.map { |room| room['num_participants'] }.reduce(:+),
19
+ 'participant_count' => audiorooms.map { |room| room['num_participants'] }.reduce(0, :+),
20
20
  'room_zero_participant_count' => audiorooms.count { |room| room['num_participants'] == 0 }
21
21
  }
22
22
  end
@@ -21,9 +21,9 @@ module Bipbip
21
21
  {
22
22
  'mountpoint_count' => mountpoints.count,
23
23
  'stream_count' => streams.count,
24
- 'streams_listener_count' => streams.map { |s| s['listeners'] || 0 }.reduce(:+),
25
- 'streams_waiter_count' => streams.map { |s| s['waiters'] || 0 }.reduce(:+),
26
- 'streams_bandwidth' => streams.map { |s| s['stats']['cur'] }.reduce(:+),
24
+ 'streams_listener_count' => streams.map { |s| s['listeners'] }.reduce(0, :+),
25
+ 'streams_waiter_count' => streams.map { |s| s['waiters'] }.reduce(0, :+),
26
+ 'streams_bandwidth' => streams.map { |s| s['stats']['cur'] }.reduce(0, :+),
27
27
  'streams_zero_fps_count' => streams.count { |s| s['frame']['fps'] == 0 },
28
28
  'streams_zero_bitrate_count' => streams.count { |s| s['stats']['cur'] == 0 }
29
29
  }
@@ -1,3 +1,3 @@
1
1
  module Bipbip
2
- VERSION = '0.6.12'.freeze
2
+ VERSION = '0.6.13'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bipbip
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.12
4
+ version: 0.6.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cargo Media