riemann-babbler 0.5.3 → 0.5.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.
- data/lib/riemann/babbler/plugins/memory.rb +1 -1
- data/lib/riemann/version.rb +1 -1
- metadata +2 -2
| @@ -14,7 +14,7 @@ class Riemann::Babbler::Memory < Riemann::Babbler | |
| 14 14 | 
             
                free_bc = free + buffers + cached
         | 
| 15 15 |  | 
| 16 16 | 
             
                fraction = 1 - (free.to_f / total)
         | 
| 17 | 
            -
                swap_fraction =  | 
| 17 | 
            +
                swap_fraction = m['SwapTotal'] == 0 ? 0 : 1 - m['SwapFree'].to_f/m['SwapTotal']
         | 
| 18 18 |  | 
| 19 19 | 
             
                desc = "usage\n\n#{shell('ps -eo pmem,pid,cmd | sort -nrb -k1 | head -10').chomp}"
         | 
| 20 20 |  | 
    
        data/lib/riemann/version.rb
    CHANGED
    
    
    
        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.5. | 
| 4 | 
            +
              version: 0.5.4
         | 
| 5 5 | 
             
              prerelease: 
         | 
| 6 6 | 
             
            platform: ruby
         | 
| 7 7 | 
             
            authors:
         | 
| @@ -164,7 +164,7 @@ required_ruby_version: !ruby/object:Gem::Requirement | |
| 164 164 | 
             
                  version: '0'
         | 
| 165 165 | 
             
                  segments:
         | 
| 166 166 | 
             
                  - 0
         | 
| 167 | 
            -
                  hash:  | 
| 167 | 
            +
                  hash: 3772733841751231359
         | 
| 168 168 | 
             
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 169 169 | 
             
              none: false
         | 
| 170 170 | 
             
              requirements:
         |