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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 143400626215977ba4c15b52b2193ee96bb4803c
4
- data.tar.gz: 7bb238a363033e2f3cfe561e917de0b1739e4c86
3
+ metadata.gz: acb27aecdfeeb3cf45a6f6da943fa2704ce70bba
4
+ data.tar.gz: 22a00de8a0a7ab9639e578e9ef6dd611e0c8ef17
5
5
  SHA512:
6
- metadata.gz: 753d836073de90b4b9dc317e9c439073d1257cf46b5e36234fbe0da0029f48cd99d3787cee4e17a8358071d8719f672fa1e43c30e129fb578ad9e2bf3449d33a
7
- data.tar.gz: 50a36686db2ed87a05d30c1d3f14973e1852201de4185020663195ca5c8790d5336a8c72431fb5ffd05afc8ba6db4a0f8288a84cc6b3d46a61a93b8b705bcff4
6
+ metadata.gz: a6a3cbcc8d0e237841c1584019344adb3296bbdca6d73f0be5a4feed12800a9ccba4985c579dc22af7ceb06159ea3b757fe0c5bd0968d097fe6bf0891e24d381
7
+ data.tar.gz: b0e0e7791b6e2f575f28eb60d27fa5fc59aa2fb074801b3eb9fb8a67bee0cde359d212c8b24fa7ecad1c01f5d6999f622f68984d66503c5edcf7c4b00dbfbbbc
@@ -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((my_process['start_on']/1000), process_sla_hours, warning_offset_percent)
175
- sla.process.status_name = (calculate_sla((my_process['start_on']/1000), process_sla_hours, warning_offset_percent) == 0) ? 'ok' : (calculate_sla((my_process['start_on']/ 1000), process_sla_hours, warning_offset_percent) == 1 ? 'warning' : 'due')
176
- sla.process.percentages = calculate_sla_percent((my_process['start_on']/1000), process_sla_hours, warning_offset_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
@@ -1,3 +1,3 @@
1
1
  module BpmManager
2
- VERSION = "1.0.22"
2
+ VERSION = "1.0.23"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bpm_manager
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.22
4
+ version: 1.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ariel Presa