mirror of
https://github.com/munin-monitoring/contrib.git
synced 2018-11-08 00:59:34 +01:00
shadowing outer local variable
This commit is contained in:
parent
f6b9d755d3
commit
1f00275d4e
@ -38,8 +38,8 @@ module Munin
|
||||
result = 0
|
||||
memory = memory_usage
|
||||
result += memory[:master][master_pid]
|
||||
memory[:worker].each do |pid, memory|
|
||||
result += memory
|
||||
memory[:worker].each do |pid, worker_memory|
|
||||
result += worker_memory
|
||||
end
|
||||
result
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user