Commit 37cb6fc3 authored by Jan Kiszka's avatar Jan Kiszka Committed by Anthony Liguori
Browse files

net: Fix dump time stamps


Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
parent 769ce76d
......@@ -1641,10 +1641,10 @@ static void dump_receive(void *opaque, const uint8_t *buf, int size)
return;
}
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;
hdr.ts.tv_sec = ts / 1000000000LL;
hdr.ts.tv_sec = ts / 1000000;
hdr.ts.tv_usec = ts % 1000000;
hdr.caplen = caplen;
hdr.len = size;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment