#131 Fix for incorrect capture duration

Scalone
jens.klein scala 1 commity/ów z stefan.schmidt/timestamp_fix do SPIN/master 6 lat temu
Stefan Schmidt skomentował 6 lat temu

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.
Ten pull request został pomyślnie scalony!
Zaloguj się, aby dołączyć do tej rozmowy.
Brak etykiety
Bug
Brak kamienia milowego
Brak przypisania
1 uczestników
Ładowanie...
Anuluj
Zapisz
Nie ma jeszcze treści.