From 37cb6fc37b21671a2e4fb9aad9ac3c3d8f92769b Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Sun, 10 May 2009 22:23:23 +0200 Subject: net: Fix dump time stamps Signed-off-by: Jan Kiszka --- net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/net.c b/net.c index d556015..31ee95a 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; -- cgit v1.1