Skip to content

Commit

Permalink
call_obj: fix convertion from uint32 to uint64
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Jul 27, 2017
1 parent a3d3239 commit b81204e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/modules/call_obj/call_obj_mod.c
Expand Up @@ -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");
Expand Down

0 comments on commit b81204e

Please sign in to comment.