Browse Source

MT#55283 use timeval_subtract

Change-Id: I91174702dac50c05725a5e3b62bdeae5f7db9c32
pull/1910/head
Richard Fuchs 10 months ago
parent
commit
89abf47989
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      daemon/control_ng.c

+ 1
- 1
daemon/control_ng.c View File

@ -863,7 +863,7 @@ static void control_ng_process_payload(ng_ctx *hctx, str *reply, str *data, cons
// stop command timer
gettimeofday(&cmd_stop, NULL);
//print command duration
timeval_from_us(&cmd_process_time, timeval_diff(&cmd_stop, &cmd_start));
timeval_subtract(&cmd_process_time, &cmd_stop, &cmd_start);
if (command_ctx.opmode >= 0 && command_ctx.opmode < OP_COUNT) {
mutex_lock(&cur->cmd[command_ctx.opmode].lock);


Loading…
Cancel
Save