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 | f798dc89da0de9611fd3b0b4c4b24067519ebcb8 (patch) | |
tree | 0445d4be0b50cb41f0149920b8306edc390f37f9 /net.c | |
parent | f76251f1759f12652c43d0f921986d4fa2384260 (diff) | |
download | qemu-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.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; |