Skip to content

Commit

Permalink
int
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Mar 4, 2011
1 parent 67317e7 commit 17a32c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/resque/worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def hostname
@hostname ||= `hostname`.chomp
end

# Returns PID of running worker
# Returns Integer PID of running worker
def pid
@pid ||= to_s.split(":")[1].to_i
end
Expand Down

0 comments on commit 17a32c5

Please sign in to comment.