Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

boo, used used instead of free...

  • Loading branch information...
commit 5346a80043caf2e60005ed7e6721b21774eee30d 1 parent 4229205
Dhruv Bansal dhruvbansal authored

Showing 2 changed files with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +1 1  graphiterb.gemspec
  2. +1 1  lib/graphiterb/monitors/system.rb
2  graphiterb.gemspec
@@ -5,7 +5,7 @@
5 5
6 6 Gem::Specification.new do |s|
7 7 s.name = %q{graphiterb}
8   - s.version = "0.2.4"
  8 + s.version = "0.2.5"
9 9
10 10 s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11 11 s.authors = ["Philip (flip) Kromer (@mrflip)"]
2  lib/graphiterb/monitors/system.rb
@@ -56,7 +56,7 @@ def swap lines
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 * spaceused.to_f / (spaceused.to_f + spacefree.to_f)) rescue 0.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

0 comments on commit 5346a80

Please sign in to comment.
Something went wrong with that request. Please try again.