Sha256: 370d7e91fb166a08c97e28404d8c781cb399b5ea3790685e10b8995f367fd0ee
Contents?: true
Size: 307 Bytes
Versions: 9
Compression:
Stored size: 307 Bytes
Contents
module Bench module Logging def log_prefix # FIXME: in ruby1.8: "%d" % nil => 0 # but in ruby 1.9.2: TypeError: can't convert nil into Integer "[T:%03d|I:%03d]" % [@thread_id.to_i, @iteration.to_i] end def bench_log(msg) Rhoconnect.log msg end end end
Version data entries
9 entries across 9 versions & 1 rubygems