From: Georgios Kontaxis Date: Tue, 14 Apr 2015 16:36:29 +0000 (-0400) Subject: duration = finish - start + 1 X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=a408124dd30fc6fad8708a6bafa2ebed60a30808;p=pcap_xrate.git duration = finish - start + 1 --- diff --git a/pcap_xrate.c b/pcap_xrate.c index b8d46da..29a1c69 100644 --- a/pcap_xrate.c +++ b/pcap_xrate.c @@ -221,7 +221,7 @@ int main(int argc, char **argv) fprintf(stdout, "Counted %lu IPv4 packet bytes or %lu off-the-wire" " transmitted in %lu seconds.\n", - total_ip4_bytes, total_pkt_bytes, ts_sec_end - ts_sec_begin); + total_ip4_bytes, total_pkt_bytes, ts_sec_end - ts_sec_begin + 1); return 0; }