flapjack 0.6.52 → 0.6.53

Sign up to get free protection for your applications and to get access to all the features.
@@ -168,7 +168,7 @@ module Flapjack
168
168
  end
169
169
 
170
170
  event.previous_state = entity_check.state
171
- event.previous_state_duration = Time.now.to_i - entity_check.last_change
171
+ event.previous_state_duration = Time.now.to_i - entity_check.last_change.to_i
172
172
  @logger.info("No previous state for event #{event.id}") if event.previous_state.nil?
173
173
 
174
174
  # If there is a state change, update record with: the time, the new state
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  module Flapjack
4
- VERSION = "0.6.52"
4
+ VERSION = "0.6.53"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flapjack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.52
4
+ version: 0.6.53
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2012-12-07 00:00:00.000000000 Z
14
+ date: 2012-12-09 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: daemons
@@ -469,12 +469,18 @@ required_ruby_version: !ruby/object:Gem::Requirement
469
469
  - - ! '>='
470
470
  - !ruby/object:Gem::Version
471
471
  version: '0'
472
+ segments:
473
+ - 0
474
+ hash: 1088091798367271549
472
475
  required_rubygems_version: !ruby/object:Gem::Requirement
473
476
  none: false
474
477
  requirements:
475
478
  - - ! '>='
476
479
  - !ruby/object:Gem::Version
477
480
  version: '0'
481
+ segments:
482
+ - 0
483
+ hash: 1088091798367271549
478
484
  requirements: []
479
485
  rubyforge_project:
480
486
  rubygems_version: 1.8.23