ring-sqa 0.1.1 → 0.1.2

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: d32cba15f81d02bdc91162394a7142b70c397c4a
4
- data.tar.gz: 361e5e46eb36fef3b659e5c3140fc63af36d49c4
3
+ metadata.gz: be6ad7a4fc28fad083958e8751d852e155c83b66
4
+ data.tar.gz: c560a356e42564b20b7af2b2852a976fac6c10ef
5
5
  SHA512:
6
- metadata.gz: 8d34b474cbbde3074fd733cc3fbd6b414bfd7f20a6c1bef23da4a0213f7b488393d87f6414afe7355ab470d544c1aac976b9d0d156f1eaea7a547f0360b382c9
7
- data.tar.gz: 9af1aebd17e05879825686d1e5a760dbe5b9291de55c3adf14afe0913c852b8d44390f08b10a56ad525a2c8d72485efe4e8877c0dd18a468191979fbfe978c2b
6
+ metadata.gz: 732955f4a710112721b62ede527f6c4e9b0e04424ce26fe57b6ddcfaba086da61135ec0ad75eb71ba1d5585df8583fd0b84a5089d20bb60cc08538c33102bee5
7
+ data.tar.gz: ab147f5b1d101d947b52b020c2b1ae7b9ca6fa4c26c8919929d39e38f53a1c5982278f937245a6c1cf33f5eb5deb161cad4362b9ec175df65028349c46a21bf5
@@ -3,8 +3,7 @@ class SQA
3
3
 
4
4
  class Alarm
5
5
  def message nodes_list, mtr_list, buffer_list, amount
6
- "
7
- Regarding: #{Ring::SQA::CFG.host.name} #{Ring::SQA::CFG.afi}
6
+ "Regarding: #{Ring::SQA::CFG.host.name} #{Ring::SQA::CFG.afi}
8
7
 
9
8
  This is an automated alert from the distributed partial outage
10
9
  monitoring system 'RING SQA'.
@@ -17,6 +17,11 @@ class SQA
17
17
  @buffer.push records.map { |record| record.peer }
18
18
  @buffer.exceed_median? ? @alarm.set(@buffer) : @alarm.clear(@buffer)
19
19
  delay = INTERVAL-(Time.now-start)
20
+ # in case delay happens to be too big
21
+ if delay > INTERVAL
22
+ delay = INTERVAL
23
+ Log.warn "delay became larger than #{INTERVAL}, capping it. (did ntp just sync?)"
24
+ end
20
25
  if delay > 0
21
26
  sleep delay
22
27
  else
data/ring-sqa.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'ring-sqa'
3
- s.version = '0.1.1'
3
+ s.version = '0.1.2'
4
4
  s.licenses = %w( Apache-2.0 )
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.authors = [ 'Saku Ytti', 'Job Snijders' ]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ring-sqa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saku Ytti
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-08-01 00:00:00.000000000 Z
12
+ date: 2014-09-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: slop