bpm_manager 0.9.3 → 0.9.4
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 +1 -1
- data/lib/bpm_manager/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a922fe61074c49e40fea934eff8f615e10672197
|
4
|
+
data.tar.gz: 7ba74217ec6c0020dc2107f3b8342a29915e4881
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e3f72613546bddbfb9dfb7004e5fd1a8a4cadccdb29cfe4c661ad4883f990f18b8dcbf9b2bbd7e9b7186750c50837e8d3f545363c89494631a96d520383de872
|
7
|
+
data.tar.gz: 9386927b694310c1c42e0cc56cecb786dfee69a528c595cb66799cab7bc8d5bc305ed442209238c00523ee48d450890a52c88663cde4275c0c1a0449ace88b57
|
data/lib/bpm_manager/red_hat.rb
CHANGED
@@ -157,7 +157,7 @@ module BpmManager
|
|
157
157
|
|
158
158
|
def self.calculate_sla_percent(start, sla_hours=0, offset=20)
|
159
159
|
percent = OpenStruct.new
|
160
|
-
total = Time.now.
|
160
|
+
total = Time.now.utc.to_f - start.to_f
|
161
161
|
|
162
162
|
percent.green = sla_hours > 0 ? (start.to_f + ((sla_hours.to_f * 7*24*60*60)) * ((100-offset)/100)) / total * 100 : 100
|
163
163
|
percent.yellow = sla_hours > 0 ? (start.to_f + ((sla_hours.to_f * 7*24*60*60)) / total * 100) - green : 0
|
data/lib/bpm_manager/version.rb
CHANGED