Skip to contentSkip to conversation

net: Fix dump time stamps

PATCH New Jan Kiszka 1 participant 1 message May 10, 2009

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 net: Fix dump time stamps

---

 net.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
net.c +2 -2
index 36c5f4b..1d3e1cc 100644
@@ -1931,10 +1931,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;