riemann-babbler 0.1.3 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,8 +28,9 @@ class Riemann::Babbler::Disk
28
28
  disk = Hash.new
29
29
  monit_points.each do |point|
30
30
  point_stat = Filesystem.stat point
31
- disk.merge!({point + " storage" => (point_stat.blocks_free/point_stat.blocks_available)})
32
- disk.merge!({point + " inode" => (point_stat.files_free/point_stat.files_available)})
31
+ human_point = point == "/" ? "/root" : point
32
+ disk.merge!({human_point + " block" => 1 - point_stat.blocks_available.to_f/point_stat.blocks})
33
+ disk.merge!({human_point + " inode" => 1 - point_stat.files_available.to_f/point_stat.files})
33
34
  end
34
35
  disk
35
36
  end
@@ -1,5 +1,5 @@
1
1
  module Riemann
2
2
  module Babbler
3
- VERSION = '0.1.3'
3
+ VERSION = '0.1.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riemann-babbler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: