cloudstack_stats 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cloudstack_stats/feed.rb +2 -1
- data/lib/cloudstack_stats/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a89df0e90202a75f6dafd0c416985e44fad4d99c
|
4
|
+
data.tar.gz: 9cbd336b8a8432e2f11de09ea456148cd0852b44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c227ae47fe0c0ffb39d842f7175586c40cf0b97b5bf805cf5a75894da50f6bff03fe7d67555604de0c59d62d0e8d2dfce3ae089c6cd67fe2520860d0df52d2fc
|
7
|
+
data.tar.gz: 7d249dcb514a34896f3a02d68869c9a6d2cedd5a97d8ed37acf98db3a0a092d29efc182c18812d806d7db350b2e10fec4a95365d754253d904c8a2c9ede0665b
|
@@ -21,7 +21,7 @@ module CloudstackStats
|
|
21
21
|
@user = opts[:influx_user]
|
22
22
|
@password = opts[:influx_password]
|
23
23
|
@debug = opts[:debug]
|
24
|
-
@total = {type: "total", stats: [{
|
24
|
+
@total = {type: "total", stats: [{}]}
|
25
25
|
end
|
26
26
|
|
27
27
|
def write(stats, total = true)
|
@@ -52,6 +52,7 @@ module CloudstackStats
|
|
52
52
|
yield(stat, response) if block_given?
|
53
53
|
end
|
54
54
|
if total
|
55
|
+
@total[:stats][0]['name'] = type
|
55
56
|
write(@total, total = false) {|stat, response| yield(stat, response)}
|
56
57
|
end
|
57
58
|
end
|