monus 0.1.3 → 0.1.4

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: 482f21054f845318dd5dc32a57521df44f666d20
4
- data.tar.gz: 2fc3c3bbe40cde0970cff470a60b7a3054b12eea
3
+ metadata.gz: c53b25cbdd34f275c1cffc6769c985f147684428
4
+ data.tar.gz: b359840fcf216dcf93f26baea273547a2dd7656d
5
5
  SHA512:
6
- metadata.gz: e151e3e6a55b9d44026b8abd76ed793dcc8a7db59205b805fe332e2de7d93f575465ae70ba0b15fff7a838cbc0bda24baf0cc8c3a1a16965c9b411949e6a621c
7
- data.tar.gz: d2bba43dfe9c57d401696df8583266392e61bf2bf67bacdb9acb11a0b4c83d64ec590d903ac502786505d30b41bef5dbfa450a14b09a5c9b221626064e00059f
6
+ metadata.gz: c722b9862c61b8ccb70de4ca21adfbfeb21f64608bd964ec99a1c87542b561a2088f7131a48ecf8cb0d258f5a988dded65768d70b5898637c257727d3c152e28
7
+ data.tar.gz: 828bc71128a54d19de843e9d30d97f763bd25cf8f7115ea02c6a5101e5f10e4c3fb22aa64b0695b0e4b1ee6abd769ba357def1477e29bc1d9f604d7a743b7158
@@ -4,12 +4,12 @@ module Monus::BuiltInMetric::EmTicks
4
4
 
5
5
  counter, time = 0, Time.now
6
6
 
7
- EM.tick_loop do
7
+ @tick_loop = EM.tick_loop do
8
8
  counter += 1
9
9
  delta = Time.now - time
10
10
  if delta > @interval
11
11
  ticks = (counter.to_f / delta).round
12
- Monus.set :em_ticks, ticks
12
+ Fiber.new { Monus.set :em_ticks, ticks }.resume
13
13
  counter = 0
14
14
  time = Time.now
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: monus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Xanders
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-13 00:00:00.000000000 Z
11
+ date: 2019-05-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Monus is an in-process monitoring library for several backends and engines
14
14
  email: necropolis@inbox.ru