kakin 0.2.0 → 0.2.1

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
  SHA256:
3
- metadata.gz: 3f4cbb82bf72ff7739687b18cb6a6c2d059a8d5b4630cffbd464760154e336d8
4
- data.tar.gz: fb806dbb427e76cd69cf59350faf790633f0e6584dfb4d667a7e2b7dbf7ff91b
3
+ metadata.gz: 9caa520a2dbba63006fe6469ec9a0a88426040b46c321c7d5f50c651b885638c
4
+ data.tar.gz: d90a075e0c37f7353102f57c1df6f19ff9d5af37e132c0e760d1236cc6b5dbd7
5
5
  SHA512:
6
- metadata.gz: 3ea58c1be161a984a54b026bd749497215920e2b7fc7ba4dd3a7427e6c168da1497be417a41df0958e5cfaf186fac64dff1af417d65bfb0cbd299b6314107975
7
- data.tar.gz: 759198768dc66b2fb180a47d962a406505e8a36a39a7a421368e99570c75d8db5a8269358a9ad64707f058ee99fe738d08cd6b84f243a9c3562f3b7a918561bc
6
+ metadata.gz: 3b454a80b04a910ddd132e158ced7cc89103500e6e3283021c12d4c42ffcd13005bda4e41a93518491df687ee79ddc0d8b5b76d44139ad97e652534e253beb15
7
+ data.tar.gz: 8c318fee8438f19220cb3eca59dd2898101a36131c5100689bfd176ce484053cdca152667ea7853ab7ac7b0f3d5397885ecd570edc0d163bcd2792784ced81b4
@@ -160,10 +160,10 @@ module Kakin
160
160
  tenants.each do |tenant|
161
161
  result[tenant.name] ||= {}
162
162
  volume_types.each do |volume_type|
163
- total = volumes.select { |volume| volume.tenant_id == tenant.id && volume.volume_type == volume_type.name }.map(&:size).sum
163
+ count = volumes.select { |volume| volume.tenant_id == tenant.id && volume.volume_type == volume_type.name }.map(&:size).sum
164
164
  result[tenant.name][volume_type.name] = {
165
- 'total': total,
166
- 'total_usage': total * yaml['volume_cost_per_gb'][volume_type.name]
165
+ 'count': count,
166
+ 'total_usage': count * yaml['volume_cost_per_gb'][volume_type.name]
167
167
  }
168
168
  end
169
169
  end
@@ -1,3 +1,3 @@
1
1
  module Kakin
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kakin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - buty4649