Révision 1f00275d
shadowing outer local variable
| plugins/unicorn/unicorn_memory_status | ||
|---|---|---|
| 38 | 38 |
result = 0 |
| 39 | 39 |
memory = memory_usage |
| 40 | 40 |
result += memory[:master][master_pid] |
| 41 |
memory[:worker].each do |pid, memory| |
|
| 42 |
result += memory |
|
| 41 |
memory[:worker].each do |pid, worker_memory|
|
|
| 42 |
result += worker_memory
|
|
| 43 | 43 |
end |
| 44 | 44 |
result |
| 45 | 45 |
end |
Formats disponibles : Unified diff