]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use new time delta conversion function in radsniff
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 24 May 2019 19:58:04 +0000 (15:58 -0400)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Fri, 24 May 2019 19:58:04 +0000 (15:58 -0400)
src/bin/radsniff.c

index 703d1027f52283899d4f974404dcb4ee6791dcab..3243575ec47eae3ddab4743bb6f8565b78f6e4a5 100644 (file)
@@ -1756,7 +1756,7 @@ static void rs_packet_process(uint64_t count, rs_event_t *event, struct pcap_pkt
         *      It's a linked response
         */
        if (original && original->linked) {
-               fr_timeval_from_nsec(&latency, current->timestamp - original->packet->timestamp);
+               latency = fr_time_delta_to_timeval(current->timestamp - original->packet->timestamp);
 
                /*
                 *      Update stats for both the request and response types.