bpm_manager 1.0.22 → 1.0.23
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 +4 -3
- 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: acb27aecdfeeb3cf45a6f6da943fa2704ce70bba
|
4
|
+
data.tar.gz: 22a00de8a0a7ab9639e578e9ef6dd611e0c8ef17
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6a3cbcc8d0e237841c1584019344adb3296bbdca6d73f0be5a4feed12800a9ccba4985c579dc22af7ceb06159ea3b757fe0c5bd0968d097fe6bf0891e24d381
|
7
|
+
data.tar.gz: b0e0e7791b6e2f575f28eb60d27fa5fc59aa2fb074801b3eb9fb8a67bee0cde359d212c8b24fa7ecad1c01f5d6999f622f68984d66503c5edcf7c4b00dbfbbbc
|
data/lib/bpm_manager/red_hat.rb
CHANGED
@@ -169,11 +169,12 @@ module BpmManager
|
|
169
169
|
|
170
170
|
unless my_process.nil?
|
171
171
|
sla = OpenStruct.new(:process => OpenStruct.new)
|
172
|
+
start = my_process['start_on'].to_i / 1000
|
172
173
|
|
173
174
|
# Calculates the process sla
|
174
|
-
sla.process.status = calculate_sla(
|
175
|
-
sla.process.status_name = (calculate_sla(
|
176
|
-
sla.process.percentages = calculate_sla_percent(
|
175
|
+
sla.process.status = calculate_sla(start, process_sla_hours, warning_offset_percent)
|
176
|
+
sla.process.status_name = (calculate_sla(start, process_sla_hours, warning_offset_percent) == 0) ? 'ok' : (calculate_sla(start, process_sla_hours, warning_offset_percent) == 1 ? 'warning' : 'due')
|
177
|
+
sla.process.percentages = calculate_sla_percent(start, process_sla_hours, warning_offset_percent)
|
177
178
|
else
|
178
179
|
sla = nil
|
179
180
|
end
|
data/lib/bpm_manager/version.rb
CHANGED