From 8492f6bbc56d42e3068f25ca233faa78884d5a77 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 25 Dec 2010 01:27:33 -0800 Subject: fix $msec and $usec in pure Ruby variant It was totally broken but nobody uses uses it, so it went unnoticed since the beginning of time. --- lib/clogger/pure.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/clogger/pure.rb b/lib/clogger/pure.rb index 452e232..4146cce 100644 --- a/lib/clogger/pure.rb +++ b/lib/clogger/pure.rb @@ -143,7 +143,7 @@ private time_format(t.to_i, (t - t.to_i) * 1000000, op[1], op[2]) when OP_TIME t = Time.now - time_format(t.sec, t.usec, op[1], op[2]) + time_format(t.to_i, t.usec, op[1], op[2]) when OP_COOKIE (env['rack.request.cookie_hash'][op[1]] rescue "-") || "-" else -- cgit v1.2.3-24-ge0c7