summaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@web.de>2009-05-10 22:23:23 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-05-22 10:50:36 -0500
commit37cb6fc37b21671a2e4fb9aad9ac3c3d8f92769b (patch)
tree0445d4be0b50cb41f0149920b8306edc390f37f9 /net.c
parent769ce76d0e220e1ecde16154e76d43cf7099e7c6 (diff)
downloadqemu-37cb6fc37b21671a2e4fb9aad9ac3c3d8f92769b.tar.gz
qemu-37cb6fc37b21671a2e4fb9aad9ac3c3d8f92769b.tar.bz2
qemu-37cb6fc37b21671a2e4fb9aad9ac3c3d8f92769b.zip
net: Fix dump time stamps
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Diffstat (limited to 'net.c')
-rw-r--r--net.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net.c b/net.c
index d556015267..31ee95a4ff 100644
--- a/net.c
+++ b/net.c
@@ -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;