#131 Fix for incorrect capture duration

Fusionado
jens.klein fusionados 1 commits de stefan.schmidt/timestamp_fix en SPIN/master hace 7 años

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.
¡Este Pull Request se ha completado con éxito!
Inicie sesión para unirse a esta conversación.
Sin etiquetas
Bug
Sin Milestone
Sin asignado
1 participantes
Cargando...
Cancelar
Guardar
Aún no existe contenido.