Skip to content

Commit efaac8b

Browse files
committed
fixed handling of nsec timestamps comming from a RPI
1 parent c97e632 commit efaac8b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hcxpcapngtool.c

+2-1
Original file line numberDiff line numberDiff line change
@@ -5245,8 +5245,9 @@ while(1)
52455245

52465246
if(timeresolval[pcapngepb->interface_id] == TSRESOL_NSEC)
52475247
{
5248-
timestamppcapng = pcapngepb->timestamp_high / 1000;
5248+
timestamppcapng = pcapngepb->timestamp_high;
52495249
timestamppcapng = (timestamppcapng << 32) +pcapngepb->timestamp_low;
5250+
timestamppcapng /= 1000;
52505251
}
52515252
if(pcapngepb->caplen != pcapngepb->len)
52525253
{

0 commit comments

Comments
 (0)