1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 14:16:00 +00:00

shadowing outer local variable

This commit is contained in:
linyows 2014-04-18 10:13:56 +09:00
parent f6b9d755d3
commit 1f00275d4e

View file

@ -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