logtrend 0.1.20101203213911 → 0.1.20101203222805

Sign up to get free protection for your applications and to get access to all the features.
data/lib/logtrend.rb CHANGED
@@ -38,7 +38,7 @@ class LogTrend
38
38
  def build_graph(graphs_dir, rrd_dir, name, data)
39
39
  RRD.graph File.join(graphs_dir,"#{name}.png"), :title => name, :width => 800, :height => 250, :color => ["FONT#000000", "BACK#FFFFFF"] do
40
40
  data.each do |name, color|
41
- area File.join(rrd_dir,"#{name}.rrd"), "#{name}_count" => :average, :color => color, :label => name.to_s
41
+ line File.join(rrd_dir,"#{name}.rrd"), "#{name}_count" => :average, :color => color, :label => name.to_s
42
42
  end
43
43
  end
44
44
  end
data/samples/example.rb CHANGED
@@ -11,8 +11,8 @@ Dir.mkdir('/tmp/graphs') if !File.exists?('/tmp/graphs')
11
11
  LogTrend.start('test.log', "/tmp/rrd", "/tmp/graphs") do |l|
12
12
  l.trends = {
13
13
  :total => /.*/,
14
- :fbod => /fogbugz.com/,
15
- :kod => /kilnhg.com/
14
+ :fbod => /fogbugz\.com/,
15
+ :kod => /kilnhg\.com/
16
16
  }
17
17
 
18
18
  l.graphs = {
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: logtrend
3
3
  version: !ruby/object:Gem::Version
4
- hash: 40202406427829
4
+ hash: 40202406445617
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 20101203213911
10
- version: 0.1.20101203213911
9
+ - 20101203222805
10
+ version: 0.1.20101203222805
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Gorsuch
@@ -57,7 +57,6 @@ extra_rdoc_files: []
57
57
  files:
58
58
  - lib/logtrend.rb
59
59
  - samples/example.rb
60
- - samples/test.log
61
60
  has_rdoc: true
62
61
  homepage: https://github.com/gorsuch/logtrend
63
62
  licenses: []
data/samples/test.log DELETED
File without changes