lib/daemonizer/cli.rb in daemonizer-0.4.8 vs lib/daemonizer/cli.rb in daemonizer-0.4.9
- old
+ new
@@ -96,14 +96,14 @@
exit(0)
end
return true
end
- desc "stat", "Pools statistics"
- def stat(pool_name = nil)
- statistics = Daemonizer::Stats::MemoryStats.new
+ desc "stats", "Pools statistics"
+ def stats(pool_name = nil)
Daemonizer.find_pools(pool_name).each do |pool|
- statistics.print(pool.name.to_s)
+ statistics = Daemonizer::Stats::MemoryStats.new(pool)
+ statistics.print
end
end
private
def control_pools_loop(pool_name, message = nil, debug = false, &block)