readis 2.4.0 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/readis/monitor.rb +5 -4
- metadata +1 -1
data/lib/readis/monitor.rb
CHANGED
@@ -46,11 +46,12 @@ Usage: readis monitor [options]
|
|
46
46
|
optparser
|
47
47
|
end
|
48
48
|
|
49
|
-
|
50
|
-
# 1325296232.698537 "set" "monkey" "shines"
|
51
49
|
def format(line)
|
52
|
-
if timestamp = line.slice!(/^[\d.]+
|
53
|
-
timestamp.
|
50
|
+
if timestamp = line.slice!(/^[\d.]+ /)
|
51
|
+
timestamp.strip!
|
52
|
+
end
|
53
|
+
if client = line.slice!(/\[\d+ [\d:\.]+\] "/)
|
54
|
+
client = client.slice(3..-4)
|
54
55
|
end
|
55
56
|
parts = line.split('" "').map {|p| p.chomp('"') }
|
56
57
|
|