Commit 37cb6fc37b21671a2e4fb9aad9ac3c3d8f92769b
Committed by
Anthony Liguori
1 parent
769ce76d
net: Fix dump time stamps
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Showing
1 changed file
with
2 additions
and
2 deletions
net.c
... | ... | @@ -1641,10 +1641,10 @@ static void dump_receive(void *opaque, const uint8_t *buf, int size) |
1641 | 1641 | return; |
1642 | 1642 | } |
1643 | 1643 | |
1644 | - ts = muldiv64 (qemu_get_clock(vm_clock),1000000, ticks_per_sec); | |
1644 | + ts = muldiv64(qemu_get_clock(vm_clock), 1000000, ticks_per_sec); | |
1645 | 1645 | caplen = size > s->pcap_caplen ? s->pcap_caplen : size; |
1646 | 1646 | |
1647 | - hdr.ts.tv_sec = ts / 1000000000LL; | |
1647 | + hdr.ts.tv_sec = ts / 1000000; | |
1648 | 1648 | hdr.ts.tv_usec = ts % 1000000; |
1649 | 1649 | hdr.caplen = caplen; |
1650 | 1650 | hdr.len = size; | ... | ... |