duration = finish - start + 1
authorGeorgios Kontaxis <redacted>
Tue, 14 Apr 2015 16:36:29 +0000 (12:36 -0400)
committerGeorgios Kontaxis <redacted>
Tue, 14 Apr 2015 16:36:29 +0000 (12:36 -0400)
pcap_xrate.c

index b8d46dac7a4c81c8a1ce2a4865250755855589f3..29a1c691ec91ccce7c9b1f31bb417423b3937f4a 100644 (file)
@@ -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;
 }
git clone https://git.99rst.org/PROJECT