aboutsummaryrefslogtreecommitdiff
path: root/python/ndpi_example.py
diff options
context:
space:
mode:
authorLuca Deri <deri@ntop.org>2019-09-23 18:04:55 +0200
committerLuca Deri <deri@ntop.org>2019-09-23 18:04:55 +0200
commit19dbcaa3a9653f1e910db332572dd86ba3963b46 (patch)
tree209f7dcd9b9e53e1eeff21669462debef2062f53 /python/ndpi_example.py
parent3f56b2476a5ae940eff088c555637eff015b4ec5 (diff)
Fixes #777
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