#131 Fix for incorrect capture duration

Об'єднано
jens.klein злито 1 комітів з stefan.schmidt/timestamp_fix до SPIN/master 6 роки тому
Stefan Schmidt відкоментовано 6 роки тому

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.
Цей запрос було успішно влито!
Підпишіться щоб приєднатися до обговорення.
Без Мітки
Bug
Етап відсутній
Немає відповідального
1 учасників
Завантажується...
Скасувати
Зберегти
Тут ще немає жодного вмісту.