1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/benchmark.rb: Fix a syntax error.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47341 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2014-08-31 07:59:12 +00:00
parent cf990c5ace
commit 8bd2d31d45
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Sun Aug 31 16:58:49 2014 Tanaka Akira <akr@fsij.org>
* lib/benchmark.rb: Fix a syntax error.
Sun Aug 31 08:46:44 2014 Eric Wong <e@80x24.org>
* ext/zlib/zlib.c (gzfile_reset): preserve ZSTREAM_FLAG_GZFILE

View file

@ -272,8 +272,8 @@ module Benchmark
# :stopdoc:
case
when defined?(Process::CLOCK_MONOTONIC_RAW) and
(Process.clock_gettime(Process::CLOCK_MONOTONIC_RAW) rescue false)
when (defined?(Process::CLOCK_MONOTONIC_RAW) and
(Process.clock_gettime(Process::CLOCK_MONOTONIC_RAW) rescue false))
BENCHMARK_CLOCK = Process::CLOCK_MONOTONIC_RAW
when defined?(Process::CLOCK_MONOTONIC)
BENCHMARK_CLOCK = Process::CLOCK_MONOTONIC