diff options
author | Jan Kiszka <jan.kiszka@web.de> | 2009-05-10 22:23:23 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-05-22 10:50:36 -0500 |
commit | 37cb6fc37b21671a2e4fb9aad9ac3c3d8f92769b (patch) | |
tree | 0445d4be0b50cb41f0149920b8306edc390f37f9 /net.c | |
parent | 769ce76d0e220e1ecde16154e76d43cf7099e7c6 (diff) | |
download | hqemu-37cb6fc37b21671a2e4fb9aad9ac3c3d8f92769b.zip hqemu-37cb6fc37b21671a2e4fb9aad9ac3c3d8f92769b.tar.gz |
net: Fix dump time stamps
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Diffstat (limited to 'net.c')
-rw-r--r-- | net.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |