Method: PassengerMemoryStatus::MemoryStatus#getpid
- Defined in:
- lib/passenger_memory_status.rb
#getpid(line) ⇒ Object
Get the Process ID from the list
65 66 67 68 |
# File 'lib/passenger_memory_status.rb', line 65 def getpid(line) results = line.split pid, pid_memory = results[0].to_i, results[4].to_f end |