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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca6203af6d88f9c3a5259a336d30eeff87365c0d
4
- data.tar.gz: 7fa8319f2a329a531dbcee3efb425f765e2e3f3e
3
+ metadata.gz: a922fe61074c49e40fea934eff8f615e10672197
4
+ data.tar.gz: 7ba74217ec6c0020dc2107f3b8342a29915e4881
5
5
  SHA512:
6
- metadata.gz: bdb4cae15cdd26269654fb54e61a76a77224c26cfd474c702a1ced7db66090b99ef8c5a6d48cf796d40efc5d55da447c02742996e912f13a2d02457731162dc9
7
- data.tar.gz: 80c11efb85f5d6502a52655de09572fdcd44d006d0a97b3a6b22831c5eb50f1c232a40de971b99c527720fdd71073b778f758d744f0785252d3dc064101cbca1
6
+ metadata.gz: e3f72613546bddbfb9dfb7004e5fd1a8a4cadccdb29cfe4c661ad4883f990f18b8dcbf9b2bbd7e9b7186750c50837e8d3f545363c89494631a96d520383de872
7
+ data.tar.gz: 9386927b694310c1c42e0cc56cecb786dfee69a528c595cb66799cab7bc8d5bc305ed442209238c00523ee48d450890a52c88663cde4275c0c1a0449ace88b57
@@ -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.utf.to_f - start.to_f
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
@@ -1,3 +1,3 @@
1
1
  module BpmManager
2
- VERSION = "0.9.3"
2
+ VERSION = "0.9.4"
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: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ariel Presa