Skip to content

Commit

Permalink
Improve docs in flowtuple4-example
Browse files Browse the repository at this point in the history
  • Loading branch information
salcock committed Apr 22, 2021
1 parent cdc83aa commit d011b5f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/flowtuple4-example.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Example code that uses the AvroFlowtuple3Reader extension class to
# Example code that uses the AvroFlowtuple4Reader extension class to
# count flowtuples via a perFlowtuple callback method

import sys
Expand All @@ -17,6 +17,9 @@
# Incredibly simple callback that simply increments a global counter for
# each flowtuple, as well as tracking the number of packets for each
# IP protocols
#
# We also report some stats on the most common TTLs, packet sizes and TCP flag
# combinations that our flowtuple records contain
def perFlowtupleCallback(ft, userarg):
global counter, protocols
counter += 1
Expand Down

0 comments on commit d011b5f

Please sign in to comment.