lib/clogger/pure.rb in clogger-2.2.1 vs lib/clogger/pure.rb in clogger-2.3.0
- old
+ new
@@ -164,9 +164,10 @@
when OP_EVAL; eval(op[1]).to_s rescue "-"
when OP_TIME_LOCAL; Time.now.strftime(op[1])
when OP_TIME_UTC; Time.now.utc.strftime(op[1])
when OP_REQUEST_TIME
t = mono_now - start
+ t = t * (10 ** op[3])
time_format(t.to_i, (t - t.to_i) * 1000000, op[1], op[2])
when OP_TIME
t = Time.now
time_format(t.to_i, t.usec, op[1], op[2])
when OP_COOKIE