graphiterb 0.2.5 → 0.2.6
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/graphiterb.gemspec +1 -1
- data/lib/graphiterb/monitors/system.rb +1 -1
- metadata +3 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.6
|
data/graphiterb.gemspec
CHANGED
@@ -56,7 +56,7 @@ module Graphiterb
|
|
56
56
|
def get_metrics metrics, since
|
57
57
|
df.each do |handle, size, spaceused, spacefree, percentused, location|
|
58
58
|
disk_name = handle.gsub(/^\//, '').split('/')
|
59
|
-
percent_free = (100.0 *
|
59
|
+
percent_free = (100.0 * spacefree.to_f / (spaceused.to_f + spacefree.to_f)) rescue 0.0
|
60
60
|
metrics << [scope(hostname, disk_name, 'available'), percent_free]
|
61
61
|
end
|
62
62
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphiterb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 6
|
10
|
+
version: 0.2.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Philip (flip) Kromer (@mrflip)
|