Projet

Général

Profil

Révision 1f00275d

ID1f00275d4e1f58bf0129d4ebdc41690d11f594dd
Parent f6b9d755
Enfant fd3a90f2

Ajouté par linyows il y a plus de 11 ans

shadowing outer local variable

Voir les différences:

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