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.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module CityWatch
2
- VERSION = "0.4.9"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: city-watch
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.4.9
5
+ version: 0.5.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - John Bragg