mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-26 02:48:28 +00:00
Fixing netstat_bsd_s bug (base is 1000 for bytes)
This commit is contained in:
parent
a3d99279b4
commit
0d1c792196
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/bin/env ruby
|
#!/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'
|
# This plugin shows various statistics from 'netstat -s'
|
||||||
#
|
#
|
||||||
|
@ -62,7 +62,7 @@ class Graph
|
||||||
"graph_order #{labels.map(&:escape).join(' ')}"
|
"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|
|
labels.each { |label|
|
||||||
label_esc = label.escape
|
label_esc = label.escape
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue