mirror of
https://git.proxmox.com/git/qemu
synced 2025-08-14 21:35:07 +00:00
net: Fix dump time stamps
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
parent
769ce76d0e
commit
37cb6fc37b
2
net.c
2
net.c
@ -1644,7 +1644,7 @@ static void dump_receive(void *opaque, const uint8_t *buf, int size)
|
|||||||
ts = muldiv64(qemu_get_clock(vm_clock), 1000000, ticks_per_sec);
|
ts = muldiv64(qemu_get_clock(vm_clock), 1000000, ticks_per_sec);
|
||||||
caplen = size > s->pcap_caplen ? s->pcap_caplen : size;
|
caplen = size > s->pcap_caplen ? s->pcap_caplen : size;
|
||||||
|
|
||||||
hdr.ts.tv_sec = ts / 1000000000LL;
|
hdr.ts.tv_sec = ts / 1000000;
|
||||||
hdr.ts.tv_usec = ts % 1000000;
|
hdr.ts.tv_usec = ts % 1000000;
|
||||||
hdr.caplen = caplen;
|
hdr.caplen = caplen;
|
||||||
hdr.len = size;
|
hdr.len = size;
|
||||||
|
Loading…
Reference in New Issue
Block a user