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 +4 -4
- data/lib/monus/built_in_metrics/em_ticks.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c53b25cbdd34f275c1cffc6769c985f147684428
|
4
|
+
data.tar.gz: b359840fcf216dcf93f26baea273547a2dd7656d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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-
|
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
|