aws_pocketknife 0.1.21 → 0.1.23
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws_pocketknife/cli/ecs.rb +2 -2
- data/lib/aws_pocketknife/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a905dab1c729293da8624fca40f5549a095378a8
|
4
|
+
data.tar.gz: e011a7b84b9aa2ed22ea4aea4dfb7d6f5fc951a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a7c5493e68f1717c80fc5eb693a9e9f5762130813c5cb9bdcb2132dff7ff3c0e060d1c4f371d60b13fba9c921899121b8d9af6b4de1da73e2bac30964ccd72b
|
7
|
+
data.tar.gz: d9d3d7d27a839f03c607a0aef9ca726547ceff16c4d35e3601cbd16ffa2b4a358215fa7955714104676faf67991eacb82969343e882a426961bca65a4ccabe01
|
@@ -147,10 +147,10 @@ module AwsPocketknife
|
|
147
147
|
pending_tasks_count_total = pending_tasks_count_total + info.pending_tasks_count
|
148
148
|
running_tasks_count_total = running_tasks_count_total + info.running_tasks_count
|
149
149
|
mem_cluster_total = mem_cluster_total + mem_total
|
150
|
-
mem_cluster_res_total = mem_cluster_res_total + mem_available
|
150
|
+
mem_cluster_res_total = mem_cluster_res_total + mem_available if info.status == "ACTIVE"
|
151
151
|
mem_percentage = (((mem_cluster_total - mem_cluster_res_total)/mem_cluster_total) * 100).round(2)
|
152
152
|
cpu_cluster_total = cpu_cluster_total + cpu_total
|
153
|
-
cpu_cluster_res_total = cpu_cluster_res_total + cpu_available
|
153
|
+
cpu_cluster_res_total = cpu_cluster_res_total + cpu_available if info.status == "ACTIVE"
|
154
154
|
cpu_percentage = (((cpu_cluster_total - cpu_cluster_res_total)/cpu_cluster_total) * 100).round(2)
|
155
155
|
count = count + 1
|
156
156
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws_pocketknife
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.23
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gustavo Soares Souza
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-08-
|
11
|
+
date: 2017-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|