rec 1.3.3 → 1.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +3 -0
- data/lib/rec/correlator.rb +1 -1
- data/rulesets/rules.rb +0 -0
- metadata +4 -4
data/CHANGELOG
CHANGED
data/lib/rec/correlator.rb
CHANGED
@@ -109,7 +109,7 @@ class Correlator
|
|
109
109
|
message = $'
|
110
110
|
elsif logLine =~ /^(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s+(\d+),\s+(\d{4})\s(\d+)\:(\d\d)\:(\d\d)\s+(AM|PM)\s+/
|
111
111
|
# Oct 1, 2012 1:42:04 PM org.apache.catalina.startup.Catalina start
|
112
|
-
hour = ($7 == "PM") ? ($4.to_i + 12) : $4 # convert PM to 24-hour style
|
112
|
+
hour = ($7 == "PM") ? (($4.to_i % 12) + 12) : $4 # convert PM to 24-hour style
|
113
113
|
time = Time.local($3, $1, $2, hour, $5, $6, 0)
|
114
114
|
message = $'
|
115
115
|
elsif logLine =~ /^\[\w+\]\s(Sun|Mon|Tue|Wed|Thu|Fri|Sat)\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s+(\d+)\s(\d\d)\:(\d\d)\:(\d\d)\s(\d{4})/
|
data/rulesets/rules.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 1.3.
|
9
|
+
- 4
|
10
|
+
version: 1.3.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Richard Kernahan
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2013-03-26 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: xmpp4r
|