aboutsummaryrefslogtreecommitdiff
path: root/python/ndpi_example.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/ndpi_example.py')
-rwxr-xr-xpython/ndpi_example.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/ndpi_example.py b/python/ndpi_example.py
index fb0135c46..afbba43b5 100755
--- a/python/ndpi_example.py
+++ b/python/ndpi_example.py
@@ -166,7 +166,7 @@ def packetcaptured(packet):
#filling pcap_pkthdr
h.len = h.caplen = len(packet)
h.ts.tv_sec = int(packet["IP"].time/1000000)
- h.ts.tv_usec = round(packet["IP"].time)
+ h.ts.tv_usec = int(packet["IP"].time)
# real work
if int(packet[1].frag) == 0: # not fragmented packet