aws_pocketknife 0.1.21 → 0.1.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a0a509ffa1f117d67b913ed99d7cf866b7cff7a1
4
- data.tar.gz: 17d4d03e4f55d5c2e802a1210eb2b00376aa535a
3
+ metadata.gz: a905dab1c729293da8624fca40f5549a095378a8
4
+ data.tar.gz: e011a7b84b9aa2ed22ea4aea4dfb7d6f5fc951a3
5
5
  SHA512:
6
- metadata.gz: d4a7945c37008758d21d5f667e3c617e8fee4f93cfddd122ff68785288b65a23eccf6fc05a225bd8a4cd56070ef86970829bf53aa23b8106574f48dad18f5976
7
- data.tar.gz: 10f88f5dea559affb4cad3882b2a1a501c219b73d326a89382dae3586da09797a37ec3a6affe64d1b557379bd81fb1af138f633572a3c0717b34431dd8aeedc8
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
@@ -1,3 +1,3 @@
1
1
  module AwsPocketknife
2
- VERSION = "0.1.21"
2
+ VERSION = "0.1.23"
3
3
  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.21
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-10 00:00:00.000000000 Z
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