1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00

Ruby plugins: apply style changes as suggested by "rubocop --fix-layout"

This commit is contained in:
Lars Kruse 2020-08-25 16:52:39 +02:00
parent 26c29daa2b
commit b0b39b018e
30 changed files with 1447 additions and 1384 deletions

View file

@ -89,6 +89,7 @@ when "config"
if not is_vb_valid(vb, subchannel)
next
end
puts "#{field_name(unit, vb, letter)}.label #{label(unit, vb)}"
end
end
@ -96,7 +97,6 @@ when "config"
exit 0
end
units.each do |unit|
SNMP::Manager.open(:Host => unit,
:Community => community,
@ -105,6 +105,7 @@ units.each do |unit|
if not is_vb_valid(vb, subchannel)
next
end
puts "#{field_name(unit, vb, letter)}.value #{vb.value.to_f / 100}"
end
end