network_resiliency 0.7.4 → 0.7.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/network_resiliency/stats.rb +5 -5
- data/lib/network_resiliency/syncer.rb +4 -0
- data/lib/network_resiliency/version.rb +1 -1
- data/lib/network_resiliency.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3774847314055bc429c64b7c01ff299f968381b17ba0cb127d51bac28191bac2
|
4
|
+
data.tar.gz: dd751faea35ee4239814fe97f3982978c2d46d48b327985112543eb54f33588b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 74749461556b53fd3e3cbcbff1a01b5e96686018ad57987ef2812251cce2570155e42fbbca624f3b42d4ec2ddd79ecbb98ee8eeb71e773da4613f7ac6efbe6a5
|
7
|
+
data.tar.gz: 9a907626da9a9ad67ec59ccd50d59ed26f3fa2539dc92bdc82c7be4a7d767077de44c8621d24c703f6a3b30c1ce0d810e7e55f6944ce6b3aa908b54d696f7245
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -154,12 +154,12 @@ module NetworkResiliency
|
|
154
154
|
sq_dist = sq_dist + other_sq_dist
|
155
155
|
sq_dist = sq_dist + (delta ^ 2) * prev_n * other_n / n
|
156
156
|
end
|
157
|
-
end
|
158
157
|
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
158
|
+
-- update cache
|
159
|
+
if n >= #{MIN_SAMPLE_SIZE} then
|
160
|
+
cached_stats = string.format('%d|%f|%d', n, avg, sq_dist)
|
161
|
+
redis.call('SET', cache_key, cached_stats, 'EX', #{CACHE_TTL})
|
162
|
+
end
|
163
163
|
end
|
164
164
|
|
165
165
|
-- accumulate results
|
data/lib/network_resiliency.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: network_resiliency
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Pepper
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-12-
|
11
|
+
date: 2023-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: byebug
|