aboutsummaryrefslogtreecommitdiffstats
path: root/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'process.c')
-rw-r--r--process.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/process.c b/process.c
index faffc61097..c78123c799 100644
--- a/process.c
+++ b/process.c
@@ -3780,10 +3780,10 @@ rb_proc_times(VALUE obj)
times(&buf);
return rb_struct_new(S_Tms,
- utime = rb_float_new(buf.tms_utime / hertz),
- stime = rb_float_new(buf.tms_stime / hertz),
- cutime = rb_float_new(buf.tms_cutime / hertz),
- sctime = rb_float_new(buf.tms_cstime / hertz));
+ utime = DOUBLE2NUM(buf.tms_utime / hertz),
+ stime = DOUBLE2NUM(buf.tms_stime / hertz),
+ cutime = DOUBLE2NUM(buf.tms_cutime / hertz),
+ sctime = DOUBLE2NUM(buf.tms_cstime / hertz));
#else
rb_notimplement();
#endif