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
commitf798dc89da0de9611fd3b0b4c4b24067519ebcb8 (patch)
tree0445d4be0b50cb41f0149920b8306edc390f37f9 /net.c
parentf76251f1759f12652c43d0f921986d4fa2384260 (diff)
downloadqemu-f798dc89da0de9611fd3b0b4c4b24067519ebcb8.tar.gz
qemu-f798dc89da0de9611fd3b0b4c4b24067519ebcb8.tar.bz2
qemu-f798dc89da0de9611fd3b0b4c4b24067519ebcb8.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;