whenauser 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/whenauser/pageviews.rb +1 -1
- data/lib/whenauser/version.rb +1 -1
- metadata +1 -1
data/lib/whenauser/pageviews.rb
CHANGED
@@ -55,7 +55,7 @@ module WhenAUser
|
|
55
55
|
|
56
56
|
def event(env, request, status, duration)
|
57
57
|
event = {
|
58
|
-
:_domain => (status >= 400) ? 'pageerror' : 'pageview',
|
58
|
+
:_domain => (status.to_i >= 400) ? 'pageerror' : 'pageview',
|
59
59
|
:_name => page_event_name(request),
|
60
60
|
:status => status,
|
61
61
|
:duration => "%.2f" % (duration * 1000)
|
data/lib/whenauser/version.rb
CHANGED