mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
shadowing outer local variable
This commit is contained in:
parent
f6b9d755d3
commit
1f00275d4e
1 changed files with 2 additions and 2 deletions
|
@ -38,8 +38,8 @@ module Munin
|
||||||
result = 0
|
result = 0
|
||||||
memory = memory_usage
|
memory = memory_usage
|
||||||
result += memory[:master][master_pid]
|
result += memory[:master][master_pid]
|
||||||
memory[:worker].each do |pid, memory|
|
memory[:worker].each do |pid, worker_memory|
|
||||||
result += memory
|
result += worker_memory
|
||||||
end
|
end
|
||||||
result
|
result
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue