2
0
mirror of https://github.com/munin-monitoring/contrib.git synced 2018-11-08 00:59:34 +01:00

Fixing netstat_bsd_s bug (base is 1000 for bytes)

This commit is contained in:
Artem Sheremet 2012-03-27 23:40:33 +03:00
parent a3d99279b4
commit 0d1c792196

View File

@ -1,6 +1,6 @@
#!/usr/bin/env ruby
# netstat_bsd_s revision 1 (Mar 2012)
# netstat_bsd_s revision 2 (Mar 2012)
#
# This plugin shows various statistics from 'netstat -s'
#
@ -62,7 +62,7 @@ class Graph
"graph_order #{labels.map(&:escape).join(' ')}"
]
config_options.push "graph_args --base 1024" if unit == 'bytes'
config_options.push "graph_args --base 1024" if unit == :bytes
labels.each { |label|
label_esc = label.escape