remnant 0.4.8 → 0.4.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/remnant/queue.rb +16 -2
- data/lib/remnant/version.rb +1 -1
- metadata +3 -3
data/lib/remnant/queue.rb
CHANGED
@@ -27,11 +27,25 @@ class Remnant
|
|
27
27
|
app_queue_start = ::Remnant::Discover.results.delete('app_queue_start')
|
28
28
|
|
29
29
|
if lb_queue_start && fe_queue_start
|
30
|
-
|
30
|
+
ms = (fe_queue_start - lb_queue_start).round(2) # ms
|
31
|
+
|
32
|
+
# if negative, clamp to 0
|
33
|
+
if ms < 0
|
34
|
+
ms = 0
|
35
|
+
end
|
36
|
+
|
37
|
+
::Remnant::Discover.results['queue_lb'] = ms
|
31
38
|
end
|
32
39
|
|
33
40
|
if fe_queue_start && app_queue_start
|
34
|
-
|
41
|
+
ms = (app_queue_start - fe_queue_start).round(2) # ms
|
42
|
+
|
43
|
+
# if negative, clamp to 0
|
44
|
+
if ms < 0
|
45
|
+
ms = 0
|
46
|
+
end
|
47
|
+
|
48
|
+
::Remnant::Discover.results['queue_fe'] = ms
|
35
49
|
end
|
36
50
|
end
|
37
51
|
|
data/lib/remnant/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: remnant
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 9
|
10
|
+
version: 0.4.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- John 'asceth' Long
|