bpm_manager 0.10.2 → 0.10.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bpm_manager/red_hat.rb +5 -0
- data/lib/bpm_manager/version.rb +1 -1
- 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: 54c829bd5df2a65a364ea08c042236831ffdc510
|
4
|
+
data.tar.gz: 7e1d9b794d05afc0ee6ec7eb969d6f091692eab8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7265f03127359956e532bb2341bc1086898174c357584cffdb4b4a2c39f284323e3b0350a1237958280a9af1af611f4a215fbdc0712d027e2439b243c8085877
|
7
|
+
data.tar.gz: d93f30bc67665a046dbcd7d218d9adb859bda69b50023ed8bf143453ae6f626f141b2cb1ae85c9a301cb28dde10abb3c962a99fbb577da169a3606670150d980
|
data/lib/bpm_manager/red_hat.rb
CHANGED
@@ -173,6 +173,11 @@ module BpmManager
|
|
173
173
|
percent.yellow = Time.now.utc <= start.utc + total * offset_pcg ? 0.0 : (offset - (start.utc + total - Time.now.utc).to_f * 100 / (total * offset_pcg).to_f).round(2)
|
174
174
|
percent.red = 0.0
|
175
175
|
end
|
176
|
+
|
177
|
+
# Safe to 0.0
|
178
|
+
percent.green = percent.green < 0.0 ? 0.0 : percent.green
|
179
|
+
percent.yellow = percent.yellow < 0.0 ? 0.0 : percent.yellow
|
180
|
+
percent.red = percent.red < 0.0 ? 0.0 : percent.red
|
176
181
|
else
|
177
182
|
percent.green = 100.0
|
178
183
|
percent.yellow = 0.0
|
data/lib/bpm_manager/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bpm_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.10.
|
4
|
+
version: 0.10.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ariel Presa
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|