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 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
 
@@ -1,3 +1,5 @@
1
+ require "thread"
2
+
1
3
  class VarnishPipe
2
4
  attr_accessor :stats, :semaphore, :start_time
3
5
 
@@ -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.2"
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}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: varnishops
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: