]> git.ipfire.org Git - thirdparty/knot-dns.git/commitdiff
fix: kdig count time from query instead of connect
authorJan Hák <jan.hak@nic.cz>
Wed, 22 Jun 2022 08:31:55 +0000 (10:31 +0200)
committerJan Hák <jan.hak@nic.cz>
Wed, 22 Jun 2022 08:31:55 +0000 (10:31 +0200)
src/utils/kdig/kdig_exec.c

index 13556a3212293b359357007901ab63c5ad570d6d..6870e9f3d0365862f4b81eecdfaca7932a6c3954 100644 (file)
@@ -755,7 +755,7 @@ static int process_query_packet(const knot_pkt_t      *query,
        check_reply_qr(reply);
 
        // Print reply packet.
-       print_packet(reply, net, in_len, time_diff_ms(&t_query, &t_end), timestamp,
+       print_packet(reply, net, in_len, time_diff_ms(&t_start, &t_end), timestamp,
                     true, style);
 
        // Verify signature if a key was specified.