summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/time.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/time.c b/src/time.c
index 516365da5..a6f1e4d1f 100644
--- a/src/time.c
+++ b/src/time.c
@@ -358,7 +358,6 @@ mrb_time_minus(mrb_state *mrb, mrb_value self)
tm2 = mrb_get_datatype(mrb, other, &mrb_time_type);
if (tm2) {
-
f = (mrb_float)(tm->sec - tm2->sec)
+ (mrb_float)(tm->usec - tm2->usec) / 1.0e6;
return mrb_float_value(f);