vnstat-metrics 0.1.1 → 0.2.1

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.
@@ -62,11 +62,11 @@ class CpuGraphite < Sensu::Plugin::Metric::CLI::Graphite
62
62
 
63
63
  case scale.downcase
64
64
  when 'kbit/s'
65
- throughput = scaled_throughput
66
- when 'mbit/s'
67
65
  throughput = scaled_throughput * 1000
68
- when 'gbit/s'
66
+ when 'mbit/s'
69
67
  throughput = scaled_throughput * 1000 * 1000
68
+ when 'gbit/s'
69
+ throughput = scaled_throughput * 1000 * 1000 * 1000
70
70
  end
71
71
 
72
72
  output "#{config[:scheme]}.#{config[:interface]}.#{key}", throughput
@@ -1,7 +1,7 @@
1
1
  module VnstatMetrics
2
2
  module Version
3
3
  MAJOR = 0
4
- MINOR = 1
4
+ MINOR = 2
5
5
  PATCH = 1
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vnstat-metrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: