Class: Rpush::Daemon::ProcTitle
- Inherits:
-
Object
- Object
- Rpush::Daemon::ProcTitle
- Defined in:
- lib/rpush/daemon/proc_title.rb
Class Method Summary collapse
Class Method Details
.proc_title ⇒ Object
8 9 10 11 12 13 |
# File 'lib/rpush/daemon/proc_title.rb', line 8 def self.proc_title total_dispatchers = AppRunner.total_dispatchers dispatchers_str = total_dispatchers == 1 ? 'dispatcher' : 'dispatchers' total_queued = AppRunner.total_queued format("rpush | %d queued | %d %s", total_queued, total_dispatchers, dispatchers_str) end |
.update ⇒ Object
4 5 6 |
# File 'lib/rpush/daemon/proc_title.rb', line 4 def self.update $0 = proc_title end |