varnishops 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/ui.rb +1 -1
- data/lib/varnish_pipe.rb +2 -0
- data/varnishops.gemspec +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -6,7 +6,7 @@ It gathers the output of varnishncsa and create statistics such as request rate,
|
|
6
6
|
|
7
7
|
URLs from varnishncsa are categorized using custom regular expressions, based on your assets' paths and classification (example provided in **ext/**)
|
8
8
|
|
9
|
-
varnishops is written in Ruby (tested with MRI 1.9.3) and depends only on varnishncsa.
|
9
|
+
varnishops is written in Ruby (tested with MRI 1.9.3 and MRI 1.8.7) and depends only on varnishncsa.
|
10
10
|
|
11
11
|
![varnishops](https://raw.github.com/Fotolia/varnishops/master/doc/varnishops.png)
|
12
12
|
|
data/lib/ui.rb
CHANGED
@@ -158,7 +158,7 @@ class UI
|
|
158
158
|
unless @show_percent
|
159
159
|
setpos(top.length + 2, 0)
|
160
160
|
line = sprintf "%-#{@key_col_width + @url_col_width}s %14.d %14.2f %14.2f",
|
161
|
-
"TOTAL", totals[:calls], totals[:reqps], totals[:bps] / 1000
|
161
|
+
"TOTAL", totals[:calls].to_i, totals[:reqps].to_f, totals[:bps].to_f / 1000
|
162
162
|
addstr(line)
|
163
163
|
end
|
164
164
|
|
data/lib/varnish_pipe.rb
CHANGED
data/varnishops.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |gem|
|
6
6
|
gem.name = "varnishops"
|
7
|
-
gem.version = "0.0.
|
7
|
+
gem.version = "0.0.3"
|
8
8
|
gem.authors = ["Jonathan Amiez"]
|
9
9
|
gem.email = ["jonathan.amiez@fotolia.com"]
|
10
10
|
gem.description = %q{varnishops - a realtime varnish log analyzer}
|