#131 Fix for incorrect capture duration

Merge realizado
jens.klein mesclou 1 commits de stefan.schmidt/timestamp_fix em SPIN/master 6 anos atrás

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.
O merge deste Pull Request foi aplicado com sucesso!
Faça login para participar desta conversação.
Sem milestone
Não atribuída
1 participantes
Carregando...
Cancelar
Salvar
Ainda não há conteúdo.