vnstat-metrics 0.1.1 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/vnstat-metrics.rb +3 -3
- data/lib/vnstat-metrics/version.rb +1 -1
- metadata +1 -1
data/bin/vnstat-metrics.rb
CHANGED
@@ -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 '
|
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
|