call_obj: fix convertion from uint32 to uint64
authorDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 27 Jul 2017 07:13:42 +0000 (09:13 +0200)
committerDaniel-Constantin Mierla <miconda@gmail.com>
Thu, 27 Jul 2017 07:13:42 +0000 (09:13 +0200)
src/modules/call_obj/call_obj_mod.c

index 31bc1da..3e27245 100644 (file)
@@ -121,7 +121,8 @@ static void rpc_call_obj_list(rpc_t *rpc, void *ctx)
        }
        
        uint64_t current_ts;
-       uint64_t dur_ms = duration*1000; /* duration in milliseconds */
+       uint64_t dur_ms = duration;
+       dur_ms *= 1000; /* duration in milliseconds */
        if (get_timestamp(&current_ts)) {
                LM_ERR("error getting timestamp");
                rpc->fault(ctx, 500, "error getting timestamp");