#131 Fix for incorrect capture duration

Samengevoegd
jens.klein heeft 1 commits samengevoegd van stefan.schmidt/timestamp_fix naar SPIN/master 6 jaren geleden

I noticed that the capture duration was incorrect (off by one second) even after commit 971df14819, and traced it back to the C++ code not taking overflows into account when subtracting the two timestamps. I've changed the calculation to use timersub() and verified the results against Wireshark.

Tested on Arch and macOS 10.12.

I noticed that the capture duration was incorrect (off by one second) even after commit 971df14819, and traced it back to the C++ code not taking overflows into account when subtracting the two timestamps. I've changed the calculation to use timersub() and verified the results against Wireshark. Tested on Arch and macOS 10.12.
Dit pull-request is samengevoegd!
Sign in to join this conversation.
Geen mijlpaal
Geen verantwoordelijke
1 deelnemers
Laden...
Annuleren
Opslaan
Er is nog geen inhoud.