aboutsummaryrefslogtreecommitdiff
path: root/python/ndpi_example.py
diff options
context:
space:
mode:
authorRavi Kerur <ravi.kerur@viasat.com>2019-09-23 17:06:43 -0700
committerRavi Kerur <ravi.kerur@viasat.com>2019-09-23 17:06:43 -0700
commite29032085df18b034fe9e7b036869f187187ea4b (patch)
treec874e9b7f308de3658deee048f916ad6c66042fd /python/ndpi_example.py
parente8d501158e07af7dbe67cc795d64532031a4f1d4 (diff)
parent19dbcaa3a9653f1e910db332572dd86ba3963b46 (diff)
Merge branch 'dev' of https://github.com/ntop/nDPI into ndpi_icmp
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