Fix the previous commit.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2013-08-23 11:53:12 +00:00
parent 49b9f61fdb
commit bf9ce0429f
2 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
Fri Aug 23 19:40:50 2013 Tanaka Akira <akr@fsij.org> Fri Aug 23 20:50:40 2013 Tanaka Akira <akr@fsij.org>
* process.c (gcd_ul): New function. * process.c (gcd_ul): New function.
(reduce_fraction): Ditto. (reduce_fraction): Ditto.

View File

@ -6888,7 +6888,6 @@ make_clock_result(struct timetick *ttp, unsigned long numerator, unsigned long d
VALUE VALUE
rb_clock_gettime(int argc, VALUE *argv) rb_clock_gettime(int argc, VALUE *argv)
{ {
struct timespec ts;
VALUE clk_id, unit; VALUE clk_id, unit;
int ret; int ret;
@ -7006,13 +7005,14 @@ rb_clock_gettime(int argc, VALUE *argv)
tt.count = t % 1000000000; tt.count = t % 1000000000;
tt.giga_count = t / 1000000000; tt.giga_count = t / 1000000000;
numerator = sTimebaseInfo.numer; numerator = sTimebaseInfo.numer;
denominator = sTimebaseInfo.denom; denominator = sTimebaseInfo.denom * 1000000000;
goto success; goto success;
} }
#endif #endif
} }
else { else {
#if defined(HAVE_CLOCK_GETTIME) #if defined(HAVE_CLOCK_GETTIME)
struct timespec ts;
clockid_t c; clockid_t c;
c = NUM2CLOCKID(clk_id); c = NUM2CLOCKID(clk_id);
ret = clock_gettime(c, &ts); ret = clock_gettime(c, &ts);