Commit 37cb6fc37b21671a2e4fb9aad9ac3c3d8f92769b

Authored by Jan Kiszka
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
@@ -1641,10 +1641,10 @@ static void dump_receive(void *opaque, const uint8_t *buf, int size) @@ -1641,10 +1641,10 @@ static void dump_receive(void *opaque, const uint8_t *buf, int size)
1641 return; 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 caplen = size > s->pcap_caplen ? s->pcap_caplen : size; 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 hdr.ts.tv_usec = ts % 1000000; 1648 hdr.ts.tv_usec = ts % 1000000;
1649 hdr.caplen = caplen; 1649 hdr.caplen = caplen;
1650 hdr.len = size; 1650 hdr.len = size;