city-watch 0.4.9 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/city_watch/watchmen/nginx.rb +1 -1
- data/lib/version.rb +1 -1
- metadata +1 -1
@@ -17,7 +17,7 @@ class Nginx
|
|
17
17
|
active, garbage, nums, open = `curl http://localhost/nginx_status`.split("\n")
|
18
18
|
accepts, handled, requests = nums.split
|
19
19
|
garbage, reading, garbage, writing, garbage, waiting = open.split
|
20
|
-
out.merge({:active_connections => active.gsub(/.*:/,'').to_i, :accepted => accepts.to_i, :handled => handled.to_i, :requests => requests.to_i, :reading => reading.to_i, :writing => writing.to_i, :waiting => waiting.to_i})
|
20
|
+
out = out.merge({:active_connections => active.gsub(/.*:/,'').to_i, :accepted => accepts.to_i, :handled => handled.to_i, :requests => requests.to_i, :reading => reading.to_i, :writing => writing.to_i, :waiting => waiting.to_i})
|
21
21
|
end
|
22
22
|
|
23
23
|
out.merge({:num_masters => out[:masters].count, :num_workers => out[:workers].count, :summary => [:num_masters, :num_workers, :active_connections]})
|
data/lib/version.rb
CHANGED