Permalink
Browse files

boo, used used instead of free...

  • Loading branch information...
1 parent 4229205 commit 5346a80043caf2e60005ed7e6721b21774eee30d Dhruv Bansal committed Aug 18, 2010
Showing with 2 additions and 2 deletions.
  1. +1 −1 graphiterb.gemspec
  2. +1 −1 lib/graphiterb/monitors/system.rb
View
@@ -5,7 +5,7 @@
Gem::Specification.new do |s|
s.name = %q{graphiterb}
- s.version = "0.2.4"
+ s.version = "0.2.5"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Philip (flip) Kromer (@mrflip)"]
@@ -56,7 +56,7 @@ def swap lines
def get_metrics metrics, since
df.each do |handle, size, spaceused, spacefree, percentused, location|
disk_name = handle.gsub(/^\//, '').split('/')
- percent_free = (100.0 * spaceused.to_f / (spaceused.to_f + spacefree.to_f)) rescue 0.0
+ percent_free = (100.0 * spacefree.to_f / (spaceused.to_f + spacefree.to_f)) rescue 0.0
metrics << [scope(hostname, disk_name, 'available'), percent_free]
end

0 comments on commit 5346a80

Please sign in to comment.