aws_instance_list 1.3.1 → 1.3.2

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: d05c98e5aae6d7a2860094f1838a61d2a2529271
4
- data.tar.gz: 4a5047d23b616bc8366c704dfa691bfe6e8eaa77
3
+ metadata.gz: 1149aa31631ea057503adc7acafc858567e04101
4
+ data.tar.gz: 614c7a7abe21f3e540c929b6ac19d7e93e0cf58c
5
5
  SHA512:
6
- metadata.gz: 18a92fcc6d8aad273103f4c5f6f28edd8921551af149cbbb4bac206062e62cb3aa7f4d44f4b17ef33b2bb27485cdea07221a6b43107911d715998f9f8caa87c3
7
- data.tar.gz: 3e904bfcc67dbfa6ce0ca2c44745a17eda886cce7039ada66ad2bfcbb941d98f6b1975fd5c4c8eca0106cd4a97346ff09574187e9cb43e92e4b0c650a625296d
6
+ metadata.gz: f26e6ff53da4da16c0c74cc0359ea40dbd4b790d9f8221f638571abe65fcad68b12b606f09041955f7218132b66ce8c5940bbac76c7ff7ec68430df41f270bac
7
+ data.tar.gz: da4d039ac1c1707e43ed708a8be490615c6af6ce2fb9149f53355caa750db0548f0364c8a1438f3f06f39597b62144264f922babcbe57bc487cda2171ef735e5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aws_instance_list (1.3.1)
4
+ aws_instance_list (1.3.2)
5
5
  aws-sdk-cloudwatch (~> 1.6)
6
6
  aws-sdk-ec2 (~> 1.37)
7
7
  aws-sdk-elasticache (~> 1.7)
@@ -50,9 +50,9 @@ module AwsInstanceList
50
50
  end
51
51
 
52
52
  def metrics instance
53
- used=bytes_used_for_cache(instance.cache_cluster_id)
54
- total=maxmemory instance.cache_node_type
55
- [used, total, used / total * 100.0]
53
+ used=bytes_used_for_cache(instance.cache_cluster_id) / 1024
54
+ total=maxmemory(instance.cache_node_type) / 1024
55
+ [total, used]
56
56
  end
57
57
 
58
58
  end
@@ -1,3 +1,3 @@
1
1
  module AwsInstanceList
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws_instance_list
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego PL